import asyncio from aiogram import Dispatcher, Bot from aiogram.client.default import DefaultBotProperties from config import * from bot.handlers.user.user_handlers import user from bot.handlers.admin.admin_handlers import admin dp = Dispatcher() dp.include_router(user) dp.include_router(admin) bot = Bot(token=bot_token, default=DefaultBotProperties(parse_mode='HTML')) async def main(): await dp.start_polling(bot) if __name__ == '__main__': asyncio.run(main())