Warning: session_start(): open(/var/lib/php/sessions/sess_koitbiv0i2tpmu1h4lk0jidg7t, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
set flag DynModule.
sclass TelegramThinkBot > DynPrintLog {
void start {
loadFunctions_preferCached();
watchStructureLog_plusLastLine(500, telegramLogFile(), voidfunc(Map map) {
printStruct(map);
try {
makeAndCall_initChild.set(voidfunc(Class c) { copyFields(mc(), c, 'telegram_msg_tl) });
temp tempSetThreadLocal(telegram_msg_tl(), map);
S s = getString(map, 'text);
new Matches m;
S procedure = nlLookup(mechMap("Telegram Procedures"), s, m);
if (procedure != null) {
procedure = expandDollarRefsToMatches(procedure, m, true);
print(">> " + procedure);
postMessage(strOrNull(javaEvalOrInterpret(procedure)));
}
if (telegram_amIAuthorized()) {
if (swic_trim(s, "!eval ", m))
postMessage(strOrNull(javaEvalOrInterpret(m.rest())));
}
} catch e {
printStackTrace(e);
postMessage(exceptionToStringShort(e));
}
});
}
void postMessage(S s) {
telegram_postToSendLog(s);
}
}