Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import asyncio
- from aiogram import executor
- from db.database import main
- from handlers import dp
- async def on_startup():
- pass
- async def on_shutdown():
- pass
- if __name__ == '__main__':
- asyncio.create_task(main())
- executor.start_polling(dp)
Advertisement
Add Comment
Please, Sign In to add comment