From df726bde2381e92b02725640c3784fa0d24c7c48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B5=D0=BD=D0=B8=D1=81=20=D0=9A=D1=80=D0=B8=D0=B2?= =?UTF-8?q?=D0=BE=D1=87=D0=B5=D0=BD=D0=BA=D0=BE?= Date: Tue, 21 Jul 2026 16:46:29 +0700 Subject: [PATCH] fix: add handled flag in instruct 0 handler --- instruct/handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/instruct/handlers.py b/instruct/handlers.py index 3cae6bd..62fc0d2 100644 --- a/instruct/handlers.py +++ b/instruct/handlers.py @@ -59,6 +59,7 @@ async def instruct_main_handler(msg: Message): # Цифра 0 — возврат в главное меню if msg.text and msg.text.strip() == "0": clear_state(user_id) + setattr(msg, "handled", True) await msg.answer(MENU_TEXT, parse_mode="html") instruct_logger.info(f"User {user_id} returned to main menu via 0") return