svoid telegram_sendWithLogging(TelegramLongPollingBot bot, long chatID, S text) { Map map; logStructure(telegramLogFile(), 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(), map); }