Delete unnecessary code, create main function

This commit is contained in:
riot 2022-09-14 19:41:19 +03:00
parent aeef9b7e98
commit 240a193e9a
1 changed files with 6 additions and 4 deletions

10
main.py
View File

@ -1,10 +1,12 @@
#!/usr/bin/python
from aiogram import executor
from loader import dp
import handlers
import asyncio
async def main():
"""TODO: Create and configure bot, connect to db"""
if __name__ == '__main__':
handlers.register_handlers(dp)
executor.start_polling(dp, skip_updates=True)
asyncio.run(main())