diff --git a/handlers/handle_private.py b/handlers/handle_private.py index 3fd147b..c0ef4aa 100644 --- a/handlers/handle_private.py +++ b/handlers/handle_private.py @@ -23,8 +23,10 @@ async def handle_private(msg, state): if text.startswith("/"): if text == '/start': await telegram_api("sendMessage", chat_id=uid, text=start_message[lang]) - elif text.startswith('/message'): + state['welcome'] = True + elif state.get('welcome'): await edit_announce(msg) + state['welcome'] = False return elif text.startswith('/toxic'): toxic_score = await get_average_toxic(msg)