svoid telegram_sendWithLogging(TelegramLongPollingBot bot, long chatID, S text) ctex { Map map; /*logStructure(telegramLogFile(), printStruct(*/map = litorderedmap( type := 'sending, date := localDateWithMilliseconds(), toChatID := chatID, +text)/*))*/; new SendMessage sending; sending.setText(text); sending.setChatId(chatID); bot.sendMessage(sending); map.put(type := 'sent); map.put(date := localDateWithMilliseconds()); logStructure(telegramLogFile(), printStruct(map)); }