From 173014fda0e0ce9ce142460f3a8ffb6717c609c6 Mon Sep 17 00:00:00 2001 From: mihalin Date: Wed, 19 Jan 2022 00:42:29 +0300 Subject: [PATCH] loop --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index ce91bd2..d877754 100644 --- a/main.py +++ b/main.py @@ -52,7 +52,7 @@ def main(): "разработки)", action="store_true") args = parser.parse_args() - loop = asyncio.new_event_loop() + loop = asyncio.get_event_loop() loop.run_until_complete(initialization()) loop.create_task(dp.start_polling())