fix: set state on instruct menu selection so back button works
This commit is contained in:
@@ -54,9 +54,11 @@ async def instruct_router_handler(msg: Message):
|
|||||||
await msg.answer(MENU_TEXT, parse_mode="html")
|
await msg.answer(MENU_TEXT, parse_mode="html")
|
||||||
elif cmd == "1":
|
elif cmd == "1":
|
||||||
log_menu_stats(user_id, "Инструкции", "Trueconf")
|
log_menu_stats(user_id, "Инструкции", "Trueconf")
|
||||||
|
set_state(user_id, "INSTRUCT_TRUECONF_VIEW")
|
||||||
await msg.answer(INSTRUCT_TRUECONF_TEXT, parse_mode="html")
|
await msg.answer(INSTRUCT_TRUECONF_TEXT, parse_mode="html")
|
||||||
elif cmd == "2":
|
elif cmd == "2":
|
||||||
log_menu_stats(user_id, "Инструкции", "Почта")
|
log_menu_stats(user_id, "Инструкции", "Почта")
|
||||||
|
set_state(user_id, "INSTRUCT_EMAIL_VIEW")
|
||||||
await msg.answer(INSTRUCT_EMAIL_TEXT, parse_mode="html")
|
await msg.answer(INSTRUCT_EMAIL_TEXT, parse_mode="html")
|
||||||
else:
|
else:
|
||||||
await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")
|
await msg.answer(UNKNOWN_MAIN_CMD_TEXT, parse_mode="html")
|
||||||
|
|||||||
Reference in New Issue
Block a user