less-garbage2
This commit is contained in:
parent
b4e6c87065
commit
f64f07579c
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user