Andrexxelles

Untitled

Mar 7th, 2021
817
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. import asyncio
  2.  
  3. from aiogram import executor
  4.  
  5. from db.database import main
  6. from handlers import dp
  7.  
  8.  
  9. async def on_startup():
  10.     pass
  11.  
  12.  
  13. async def on_shutdown():
  14.     pass
  15.  
  16.  
  17. if __name__ == '__main__':
  18.     asyncio.create_task(main())
  19.     executor.start_polling(dp)
  20.  
Advertisement
Add Comment
Please, Sign In to add comment