import asyncio from aiogram import Bot, Dispatcher from aiogram_dialog import setup_dialogs from bestconfig import Config from app.dialogs import dialogs_router from app.handlers import handlers_router cfg = Config() bot = Bot(token=cfg.get("bot_token")) dp = Dispatcher() async def main(): dp.include_router(handlers_router) dp.include_router(dialogs_router) setup_dialogs(dp) await dp.start_polling(bot) if __name__ == "__main__": asyncio.run(main())