fix: allow help navigation outside help mode

This commit is contained in:
hermes committed 2026-10-12 20:40:59 +02:00
1 parent a11b5aac64
commit aba1eb4ced
3 files changed
+9 -8

No files matched your search

-3
View File
@@ -387,9 +387,6 @@ async def help_navigation(callback: CallbackQuery, state: FSMContext) -> None:
message = callback.message
if not isinstance(message, Message):
return
if await current_mode(state) != "help":
await callback.answer("Сначала открой режим /help.", show_alert=True)
return
section = (callback.data or "help:menu").split(":", 1)[1]
if not await edit_rich_message(
message,