svoid bot_handleSmartBotsChat() { smartBotsChat_onLine_lookback = 1; //smartBotsChat_onLine_onHistoryRead.set(f onHistoryRead); smartBotsChat_onLine_safe(voidfunc(fS text) { pcall { int nr = toInt(mapGet(stefansChat_onLine_fullParams!, "nr")); print("> [" + nr + "] " + text); if (nr != 0) smartBotsChat_n_notify(nr); } S a = answer(text); a = bot_shortenAnswerForChatAndUploadFull(myName, text, a); postToSmartBotsChat(a); }); }