mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-09 05:19:41 +00:00
Get rid of client.loop
Instead, use the asyncio-intended way of implicit loop.
This commit is contained in:
@@ -40,7 +40,7 @@ class _ChatAction:
|
||||
self._chat, self._action)
|
||||
|
||||
self._running = True
|
||||
self._task = self._client.loop.create_task(self._update())
|
||||
self._task = asyncio.create_task(self._update())
|
||||
return self
|
||||
|
||||
async def __aexit__(self, *args):
|
||||
|
Reference in New Issue
Block a user