This commit is contained in:
2026-03-01 16:26:47 +03:00
parent 3d0dd57752
commit 52def1cb19
6 changed files with 110 additions and 7 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
from aiogram import Router
from aiogram.filters import CommandStart
from aiogram.filters import CommandStart, ExceptionTypeFilter
from aiogram.types import Message, CallbackQuery, ErrorEvent
from aiogram_dialog import DialogManager, StartMode
from aiogram_dialog.api.exceptions import UnknownIntent
@@ -56,7 +56,7 @@ async def start_handler(
await dialog_manager.start(RegistrationSG.select_floor, mode=StartMode.RESET_STACK)
@router.error()
@router.error(ExceptionTypeFilter(UnknownIntent))
async def unknown_intent_handler(
event: ErrorEvent,
dialog_manager: DialogManager,