From 7eedb81fa7739f1b18f5c51b596d76d4b1897d91 Mon Sep 17 00:00:00 2001 From: Qwerty-Space Date: Sun, 17 May 2020 01:22:27 +0100 Subject: [PATCH] Add list to the list of passable objects --- telethon/client/uploads.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index c8564ad1..63caf969 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -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.