Warning: session_start(): open(/var/lib/php/sessions/sess_404bg7bukmn1vkie0qt73gbsgq, 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
abstract sclass AbstractTelegramThinkBot > DynPrintLog {
abstract void thinkAbout(S input);
transient Set toSend;
start {
loadFunctions_preferCached();
dm_useLocallyCopiedMechLists();
watchStructureLog_plusLastLine(500, telegramLogFile(), voidfunc(Map map) {
if (!eqGet(map, 'type, 'heard)) ret;
printStruct(map);
try {
setThreadLocal((ThreadLocal) getOptMC('makeAndCall_initChild), voidfunc(Class c) { copyFields(mc(), c, 'telegram_msg_tl) });
temp tempSetThreadLocal(telegram_msg_tl(), map);
S s = getString(map, 'text);
toSend = new LinkedHashSet;
thinkAbout(s);
for (S out : takeFirst(3, getAndClearList(toSend)))
telegram_postToSendLog(out);
} catch e {
printStackTrace(e);
postMessage(exceptionToStringShort(e));
}
});
}
void postMessage(S s) {
toSend.add(s);
}
}