From 50665bc881dbac958753c820383d6bec82dc4a35 Mon Sep 17 00:00:00 2001 From: Alexhol Date: Fri, 17 Jan 2020 01:57:29 +0300 Subject: [PATCH] fixed document_captions removed in previous commit --- telethon/client/uploads.py | 1 + 1 file changed, 1 insertion(+) diff --git a/telethon/client/uploads.py b/telethon/client/uploads.py index 464b8e68..25c80808 100644 --- a/telethon/client/uploads.py +++ b/telethon/client/uploads.py @@ -270,6 +270,7 @@ class UploadMethods: # we may want to send as an album if all are photo files. if utils.is_list_like(file): media_captions = [] + document_captions = [] if utils.is_list_like(caption): captions = caption else: