Fix typo in docs

AttributeError: 'TelegramClient' object has no attribute 'loop_create_task'
This commit is contained in:
KnorpelSenf 2020-06-24 13:18:45 +02:00 committed by GitHub
parent e0c3143763
commit 7099e15615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ class TelegramBaseClient(abc.ABC):
.. code-block:: python .. code-block:: python
# Download media in the background # Download media in the background
task = client.loop_create_task(message.download_media()) task = client.loop.create_task(message.download_media())
# Do some work # Do some work
... ...