svoid telegram_sendVoiceMessageWithLogging(TelegramLongPollingBot bot, long chatID, S text, S voice, S globalID) ctex { assertCereprocVoice(voice); Map map = litorderedmap( type := 'sending, voice := 'voice, date := localDateWithMilliseconds(), toChatID := chatID, +globalID, +text); File audioFile = cereproc_silent(voice, text); new SendVoice sending; sending.setNewVoice(audioFile); sending.setChatId(chatID); bot.sendVoice(sending); map.put(type := 'sent); map.put(date := localDateWithMilliseconds()); logStructure(telegramLogFile(), printStruct(map)); }