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