From 2cefbd77ed288940d0345586067815d934a8aacd Mon Sep 17 00:00:00 2001 From: Aditya Date: Wed, 16 Feb 2022 11:41:28 +0530 Subject: [PATCH] use `asyncio` in place of `aio_loop` (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