From d7f1c83ef69adcfd46b746d01be6984211047c80 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Thu, 18 Jun 2020 17:17:44 +0200 Subject: [PATCH] Fixes #56 --- worker.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/worker.py b/worker.py index da9de39..3aa48c8 100644 --- a/worker.py +++ b/worker.py @@ -1142,8 +1142,10 @@ class Worker(threading.Thread): self.loc.get("conversation_open_help_menu"), reply_markup=telegram.ReplyKeyboardMarkup(keyboard, one_time_keyboard=True)) # Wait for a reply from the user - selection = self.__wait_for_specific_message([self.loc.get("menu_guide"), self.loc.get("menu_contact_shopkeeper"), - self.loc.get("menu_cancel")]) + selection = self.__wait_for_specific_message([ + self.loc.get("menu_guide"), + self.loc.get("menu_contact_shopkeeper") + ], cancellable=True) # If the user has selected the Guide option... if selection == self.loc.get("menu_guide"): # Send them the bot guide