less-garbage2

This commit is contained in:
Untone 2024-09-26 23:16:56 +03:00
parent b4e6c87065
commit f64f07579c

View File

@ -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