less-garbage2
This commit is contained in:
@@ -20,7 +20,7 @@ async def handle_private(msg, state):
|
||||
lang = sender.get("language_code", "ru")
|
||||
if lang != "ru" and lang != "en":
|
||||
lang = "en"
|
||||
if text.startswith("/"):
|
||||
if text and text.startswith("/"):
|
||||
if text == '/start':
|
||||
await telegram_api("sendMessage", chat_id=uid, text=start_message[lang])
|
||||
state['welcome'] = True
|
||||
|
Reference in New Issue
Block a user