We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e75db6d commit 863a7c7Copy full SHA for 863a7c7
main.py
@@ -186,10 +186,10 @@ def comment(bot, update):
186
187
188
def cancel(bot, update):
189
- user_id = update.callback_query.from_user.id
190
- message_id = update.callback_query.message.message_id
+ user_id = update.effective_user.id
+ message_id = update.effective_message.message_id
191
callback_query_id = update.callback_query.id
192
- chat_id = update.message.chat_id
+ chat_id = update.effective_chat.id
193
194
state_handler = StateHandler.get_instance()
195
user = state_handler.get_user(user_id)
0 commit comments