!7 set flag DynModule. sclass TelegramThinkBot > DynPrintLog { void start { loadFunctions_preferCached(); watchStructureLog_plusLastLine(500, telegramLogFile(), voidfunc(Map map) { printStruct(map); makeAndCall_initChild.set(voidfunc(Class c) { copyFields(mc(), c, 'telegram_msg_tl) }); temp tempSetThreadLocal(telegram_msg_tl(), map); S s = getString(map, 'text); S procedure = nlLookup(mechMap("Telegram Procedures"), s); if (procedure != null) { print(">> " + procedure); postMessage(strOrNull(javaEvalOrInterpret(procedure))); } if (telegram_amIAuthorized()) { new Matches m; if (swic_trim(s, "!eval ", m)) postMessage(strOrNull(javaEvalOrInterpret(m.rest()))); } }); } void postMessage(S s) { telegram_postToSendLog(s); } }