From af0ea638b44f183bd017f67299cb4598e70ec9ea Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 16 Feb 2022 15:55:52 +0530 Subject: [PATCH] Use `asyncio` in place of `aio_loop` (#3724) Fixes #3717. --- telethon_examples/gui.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon_examples/gui.py b/telethon_examples/gui.py index 61027d52..ea6d248a 100644 --- a/telethon_examples/gui.py +++ b/telethon_examples/gui.py @@ -53,7 +53,7 @@ def callback(func): def wrapped(*args, **kwargs): result = func(*args, **kwargs) if inspect.iscoroutine(result): - aio_loop.create_task(result) + asyncio.create_task(result) return wrapped