diff --git a/config/template_config.ini b/config/template_config.ini index 44ac6f4..14f69ae 100644 --- a/config/template_config.ini +++ b/config/template_config.ini @@ -5,7 +5,7 @@ # Config file parameters [Config] ; Config file version. DO NOT EDIT THIS! -version = 18 +version = 19 ; Set this to no when you are done editing the file is_template = yes @@ -90,6 +90,9 @@ phone_required = yes full_order_info = no ; Allow balance refill during the order checkout in case of unsufficient balance refill_on_checkout = yes +; Display welcome message (conversation_after_start) when the user sends /start +display_welcome_message = yes + # Exception reporting settings [Error Reporting] diff --git a/worker.py b/worker.py index 32056d1..c909476 100644 --- a/worker.py +++ b/worker.py @@ -106,7 +106,8 @@ class Worker(threading.Thread): # noinspection PyBroadException try: # Welcome the user to the bot - self.bot.send_message(self.chat.id, self.loc.get("conversation_after_start")) + if configloader.config["Appearance"]["display_welcome_message"] == "yes": + self.bot.send_message(self.chat.id, self.loc.get("conversation_after_start")) # If the user is not an admin, send him to the user menu if self.admin is None: self.__user_menu()