18 lines
352 B
Python
18 lines
352 B
Python
|
import asyncio
|
||
|
from handlers import router
|
||
|
from aiogram import Bot, Dispatcher
|
||
|
from config import BOT_TOKEN
|
||
|
|
||
|
bot = Bot(token=BOT_TOKEN)
|
||
|
dp = Dispatcher()
|
||
|
|
||
|
|
||
|
async def main():
|
||
|
dp.include_router(router)
|
||
|
await dp.start_polling(bot)
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
try:
|
||
|
asyncio.run(main())
|
||
|
except KeyboardInterrupt:
|
||
|
print('Exit')
|