svoid telegram_sendWithLogging(TelegramLongPollingBot bot, long chatID, S text, S globalID) ctex { Map map = litorderedmap( type := 'sending, date := localDateWithMilliseconds(), toChatID := chatID, +globalID, +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)); }