start reaction fix

This commit is contained in:
2023-04-24 09:16:28 +03:00
parent acb86ac200
commit 351b53f007

View File

@@ -8,6 +8,10 @@ from tgbot.config import FEEDBACK_CHAT_ID
def handle_feedback(msg):
mid = msg['message_id']
cid = msg['chat']['id']
if msg['text'] == '/start':
r = send_message(cid, 'Напишите своё сообщение для администрации чата')
print(r)
else:
r = forward_message(cid, mid, FEEDBACK_CHAT_ID)
support_msg_id = r['result']['message_id']
# сохранение айди сообщения в приватной переписке с ботом
@@ -18,6 +22,7 @@ def handle_feedback(msg):
}))
def handle_answer(msg):
answered_msg = msg['reply_to_message']
if answered_msg['from']['is_bot']: