Add list to the list of passable objects

This commit is contained in:
Qwerty-Space 2020-05-17 01:22:27 +01:00 committed by GitHub
parent 634bc3a8bd
commit 7eedb81fa7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.