mirror of
https://github.com/Redume/StarBoard.git
synced 2025-04-07 04:05:28 +01:00
16 lines
265 B
Python
16 lines
265 B
Python
import asyncio
|
|
|
|
import yaml
|
|
from aiogram import Dispatcher
|
|
|
|
from bot import bot
|
|
from routers import setup_routers
|
|
|
|
config = yaml.safe_load(open('config.yaml'))
|
|
|
|
dp = Dispatcher()
|
|
setup_routers(dp)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
asyncio.run(dp.start_polling(bot))
|