From d0faae11fba9aa7f92607b9c7418c948511a0c11 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Tue, 31 Mar 2020 01:52:44 +0200 Subject: [PATCH] Accept any commands starting with /start to start the bot --- core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core.py b/core.py index 32fbf3f..bf9e6f5 100644 --- a/core.py +++ b/core.py @@ -53,7 +53,7 @@ def main(): # Skip the update continue # If the message is a start command... - if isinstance(update.message.text, str) and update.message.text == "/start": + if isinstance(update.message.text, str) and update.message.text.startswith("/start"): # Check if a worker already exists for that chat old_worker = chat_workers.get(update.message.chat.id) # If it exists, gracefully stop the worker