mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 11:10:18 +03:00
Fix typo in docs
AttributeError: 'TelegramClient' object has no attribute 'loop_create_task'
This commit is contained in:
parent
e0c3143763
commit
7099e15615
|
@ -417,7 +417,7 @@ class TelegramBaseClient(abc.ABC):
|
|||
.. code-block:: python
|
||||
|
||||
# Download media in the background
|
||||
task = client.loop_create_task(message.download_media())
|
||||
task = client.loop.create_task(message.download_media())
|
||||
|
||||
# Do some work
|
||||
...
|
||||
|
|
Loading…
Reference in New Issue
Block a user