mirror of
https://github.com/python-telegram-bot/python-telegram-bot.git
synced 2024-11-24 16:17:37 +01:00
fix cancel command
This commit is contained in:
parent
6992a7a369
commit
53d1d5f589
1 changed files with 3 additions and 3 deletions
|
@ -96,9 +96,9 @@ def confirm_value(bot, update):
|
|||
# Handler for the /cancel command.
|
||||
# Sets the state back to MENU and clears the context
|
||||
def cancel(bot, update):
|
||||
chat_id = update.message.chat_id
|
||||
del state[chat_id]
|
||||
del context[chat_id]
|
||||
user_id = update.message.from_user.id
|
||||
del state[user_id]
|
||||
del context[user_id]
|
||||
|
||||
|
||||
def help(bot, update):
|
||||
|
|
Loading…
Reference in a new issue