This commit is contained in:
Alexey Sokolov
2022-08-12 02:12:36 +03:00
parent 043584c730
commit 18fa0a8542

View File

@@ -2,6 +2,8 @@ from dataclasses import dataclass
import typing
from aiogram import Dispatcher
from aiogram.types import Message
from .test import telegram_test
@@ -21,4 +23,5 @@ handlers: dict[str, Handler] = {
def register_handlers(dispatcher: Dispatcher):
for command, handler in handlers.items():
dispatcher.register_message_handler(handler, commands=[command])
dispatcher.register_message_handler(handler.function,
commands=[command])