mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-05 22:23:15 +03:00
Update .send_file() documentation (for f0eb41b
)
This commit is contained in:
parent
58d90e7e34
commit
32b92b32a7
|
@ -851,7 +851,7 @@ class TelegramClient(TelegramBareClient):
|
||||||
entity (:obj:`entity`):
|
entity (:obj:`entity`):
|
||||||
Who will receive the file.
|
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.
|
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
|
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
|
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
|
Subsequent calls with the very same file will result in
|
||||||
immediate uploads, unless ``.clear_file_cache()`` is called.
|
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):
|
caption (:obj:`str`, optional):
|
||||||
Optional caption for the sent media message.
|
Optional caption for the sent media message.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user