12 lines
407 B
Python
12 lines
407 B
Python
|
from aiogram.types import Message
|
||
|
from aiogram_dialog import DialogManager
|
||
|
from aiogram_dialog.widgets.input import ManagedTextInput
|
||
|
|
||
|
|
||
|
async def error_number_handler(
|
||
|
message: Message,
|
||
|
widget: ManagedTextInput,
|
||
|
dialog_manager: DialogManager,
|
||
|
error: ValueError,
|
||
|
):
|
||
|
await message.answer(text="Вы ввели некорректное значение. Попробуйте ещё раз.")
|