mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-08-02 19:20:09 +03:00
Add list to the list of passable objects
This commit is contained in:
parent
634bc3a8bd
commit
7eedb81fa7
|
@ -126,12 +126,14 @@ class UploadMethods:
|
|||
entity (`entity`):
|
||||
Who will receive the file.
|
||||
|
||||
file (`str` | `bytes` | `file` | `media`):
|
||||
file (`str` | `list` | `bytes` | `file` | `media`):
|
||||
The file to send, which can be one of:
|
||||
|
||||
* A local file path to an in-disk file. The file name
|
||||
will be the path's base name.
|
||||
|
||||
* A list of files can be passed to send an album.
|
||||
|
||||
* A `bytes` byte array with the file's data to send
|
||||
(for example, by using ``text.encode('utf-8')``).
|
||||
A default file name will be used.
|
||||
|
|
Loading…
Reference in New Issue
Block a user