mirror of
https://github.com/Redume/StarBoard.git
synced 2025-04-07 04:05:28 +01:00
18 lines
No EOL
351 B
Python
18 lines
No EOL
351 B
Python
from aiogram import Bot, Dispatcher
|
|
|
|
import asyncio
|
|
import yaml
|
|
|
|
from events import join_chat, reactions
|
|
|
|
config = yaml.safe_load(open('config.yaml'))
|
|
|
|
dp = Dispatcher()
|
|
bot = Bot(config['token'])
|
|
|
|
dp.include_router(router=reactions.router)
|
|
dp.include_router(router=join_chat.router)
|
|
|
|
|
|
if __name__ == '__main__':
|
|
asyncio.run(dp.start_polling(bot)) |