mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Support custom event loops
This commit is contained in:
@@ -144,7 +144,7 @@ class UpdateMethods(UserMethods):
|
||||
# region Private methods
|
||||
|
||||
def _handle_update(self, update):
|
||||
asyncio.ensure_future(self._dispatch_update(update))
|
||||
asyncio.ensure_future(self._dispatch_update(update), loop=self._loop)
|
||||
|
||||
async def _dispatch_update(self, update):
|
||||
if self._events_pending_resolve:
|
||||
|
Reference in New Issue
Block a user