mirror of
https://github.com/koloideal/DutyLog.git
synced 2026-06-10 18:35:29 +03:00
update
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user