From 7c0aaf53925ae1fc50cc6d7d963b7f312d3496bb 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 22:48:39 +0700 Subject: [PATCH] fix: set state on instruct menu selection so back button works --- instruct/handlers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/instruct/handlers.py b/instruct/handlers.py index 8bbd2e5..85ea36a 100644 --- a/instruct/handlers.py +++ b/instruct/handlers.py @@ -54,9 +54,11 @@ async def instruct_router_handler(msg: Message): await msg.answer(MENU_TEXT, parse_mode="html") elif cmd == "1": log_menu_stats(user_id, "Инструкции", "Trueconf") + set_state(user_id, "INSTRUCT_TRUECONF_VIEW") await msg.answer(INSTRUCT_TRUECONF_TEXT, parse_mode="html") elif cmd == "2": log_menu_stats(user_id, "Инструкции", "Почта") + set_state(user_id, "INSTRUCT_EMAIL_VIEW") await msg.answer(INSTRUCT_EMAIL_TEXT, parse_mode="html") else: await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")