diff --git a/telethon_examples/gui.py b/telethon_examples/gui.py index 7e6f7b0e..e90bb34a 100644 --- a/telethon_examples/gui.py +++ b/telethon_examples/gui.py @@ -40,7 +40,7 @@ def callback(func): def wrapped(*args, **kwargs): result = func(*args, **kwargs) if inspect.iscoroutine(result): - asyncio.create_task(result) + aio_loop.create_task(result) return wrapped