From 0f8119c4003bb2de47a465b428cd6dd019b82b19 Mon Sep 17 00:00:00 2001 From: KnorpelSenf Date: Wed, 24 Jun 2020 14:30:41 +0200 Subject: [PATCH] Fix typo in docs (#1493) --- telethon/client/telegrambaseclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/client/telegrambaseclient.py b/telethon/client/telegrambaseclient.py index 9f689427..938cfb5d 100644 --- a/telethon/client/telegrambaseclient.py +++ b/telethon/client/telegrambaseclient.py @@ -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 ...