reply-owner-fix

This commit is contained in:
tonyrewin 2023-04-17 01:36:41 +03:00
parent 1f81b751bb
commit a6bfbeec14

View File

@ -86,6 +86,8 @@ async def handle(req):
print(f'callback_query in {CHAT_ID}')
member_id = str(callback_query['from']['id'])
callback_data = callback_query['data']
reply_owner = str(callback_query['message']['reply_to_message']['from']['id'])
if reply_owner == member_id:
if callback_data == BUTTON_NO:
print('wrong answer, cleanup')
[_, enter_msg, welcome_msg] = newcomers[member_id].split(':')