From 2e686169557af38f649a5d5c9cbba6440f13670c Mon Sep 17 00:00:00 2001 From: KerradKerridi Date: Wed, 21 Sep 2022 07:36:18 +0300 Subject: [PATCH] logs for voice --- voice_bot.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/voice_bot.py b/voice_bot.py index b501e51..2b0a08d 100644 --- a/voice_bot.py +++ b/voice_bot.py @@ -109,6 +109,11 @@ def telegram_bot(): try: if message.text == '🎤Высказаться': markup = types.ReplyKeyboardRemove() + if LOGS: + # logging + bot.forward_message(chat_id=GROUP_FOR_LOGS, + from_chat_id=message.chat.id, + message_id=message.message_id) if TEST: bot.forward_message(chat_id=GROUP_FOR_LOGS, from_chat_id=message.chat.id, message_id=message.id) bot.send_message(chat_id=message.chat.id, text='Хорошо, теперь пришли мне свое голосовое сообщение', reply_markup=markup)