fixes
This commit is contained in:
@@ -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])
|
||||
|
||||
Reference in New Issue
Block a user