From 53d1d5f5896442aaaaacc1cd9dbe00e67aa34c0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jannes=20H=C3=B6ke?= Date: Sat, 16 Apr 2016 21:09:24 +0200 Subject: [PATCH] fix cancel command --- examples/inlinekeyboard_example.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/inlinekeyboard_example.py b/examples/inlinekeyboard_example.py index 9317dc4ed..4ee08449a 100644 --- a/examples/inlinekeyboard_example.py +++ b/examples/inlinekeyboard_example.py @@ -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):