mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-29 12:53:44 +03:00
parent
ccedf4ad0b
commit
af0ea638b4
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user