logs for voice

This commit is contained in:
KerradKerridi
2022-09-21 07:36:18 +03:00
parent 8a927fcd9f
commit 2e68616955

View File

@@ -109,6 +109,11 @@ def telegram_bot():
try: try:
if message.text == '🎤Высказаться': if message.text == '🎤Высказаться':
markup = types.ReplyKeyboardRemove() 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: if TEST:
bot.forward_message(chat_id=GROUP_FOR_LOGS, from_chat_id=message.chat.id, message_id=message.id) 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) bot.send_message(chat_id=message.chat.id, text='Хорошо, теперь пришли мне свое голосовое сообщение', reply_markup=markup)