From 32b92b32a7dfd808c500a1a63b6a0e868ebff659 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 23 Jan 2018 12:13:03 +0100 Subject: [PATCH] Update .send_file() documentation (for f0eb41b) --- telethon/telegram_client.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/telethon/telegram_client.py b/telethon/telegram_client.py index ad917f71..e0a90d23 100644 --- a/telethon/telegram_client.py +++ b/telethon/telegram_client.py @@ -851,7 +851,7 @@ class TelegramClient(TelegramBareClient): entity (:obj:`entity`): Who will receive the file. - file (:obj:`str` | :obj:`bytes` | :obj:`file`): + file (:obj:`str` | :obj:`bytes` | :obj:`file` | :obj:`media`): The path of the file, byte array, or stream that will be sent. Note that if a byte array or a stream is given, a filename or its type won't be inferred, and it will be sent as an @@ -860,6 +860,10 @@ class TelegramClient(TelegramBareClient): Subsequent calls with the very same file will result in immediate uploads, unless ``.clear_file_cache()`` is called. + Furthermore the file may be any media (a message, document, + photo or similar) so that it can be resent without the need + to download and re-upload it again. + caption (:obj:`str`, optional): Optional caption for the sent media message.