From 240a193e9a8e17583b9be11de823b73f29258cee Mon Sep 17 00:00:00 2001 From: riot Date: Wed, 14 Sep 2022 19:41:19 +0300 Subject: [PATCH] Delete unnecessary code, create main function --- main.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 4464f34..c0b8f4b 100644 --- a/main.py +++ b/main.py @@ -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())