Files
ASF-Control-Bot/main.py
T

35 lines
1.1 KiB
Python

import asyncio
from aiogram import Bot, Dispatcher
from aiogram.client.default import DefaultBotProperties
from bot.config import API_TOKEN
from bot.handlers.bots import router as bots_router
from bot.handlers.console import router as console_router
from bot.handlers.inventory import router as inventory_router
from bot.handlers.messages import router as messages_router
from bot.handlers.navigation import router as navigation_router
from bot.handlers.redeem import router as redeem_router
from bot.handlers.start import router as start_router
from bot.handlers.twofa import router as twofa_router
bot = Bot(token=API_TOKEN, default=DefaultBotProperties(parse_mode="HTML")) # type: ignore[arg-type]
dp = Dispatcher()
dp.include_router(start_router)
dp.include_router(navigation_router)
dp.include_router(console_router)
dp.include_router(bots_router)
dp.include_router(twofa_router)
dp.include_router(inventory_router)
dp.include_router(redeem_router)
dp.include_router(messages_router)
async def main() -> None:
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main())