Spaces:
1
Sleeping

1 / main.py
dycd's picture
Add bot files
5203d08
Raw History Blame Contribute Delete
326 Bytes
import asyncio
import os
from aiogram import Bot, Dispatcher
from config import BASE_DIR, BOT_TOKEN
from handlers import register_handlers
dp = Dispatcher()
register_handlers(dp)
async def main() -> None:
bot = Bot(token=BOT_TOKEN)
await dp.start_polling(bot)
if __name__ == "__main__":
asyncio.run(main())