mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-08 04:52:30 +00:00
Use loop.create_future instead asyncio.Future
This commit is contained in:
@@ -187,6 +187,6 @@ class InlineQuery(EventBuilder):
|
||||
if inspect.isawaitable(obj):
|
||||
return obj
|
||||
|
||||
f = asyncio.Future(loop=loop)
|
||||
f = loop.create_future()
|
||||
f.set_result(obj)
|
||||
return f
|
||||
|
Reference in New Issue
Block a user