from app.core.misc import dp
from app.modules.base.handlers import (
    cmd_start, cmd_about, cmd_help, cmd_change_query
)
from app.modules.base.middlewares import StatisticMiddleware, AmplitudeMiddleware

dp.register_message_handler(cmd_start, commands=["start"], state="*")
dp.register_message_handler(cmd_change_query, commands=["change_query"],
                            state="*")
dp.register_message_handler(cmd_about, commands=["about"], state="*")
dp.register_message_handler(cmd_help, commands=["help"], state="*")

dp.middleware.setup(StatisticMiddleware())
dp.middleware.setup(AmplitudeMiddleware())
