fixed document_captions removed in previous commit

This commit is contained in:
Alexhol 2020-01-17 01:57:29 +03:00
parent 5405e6a2ba
commit 50665bc881

View File

@ -270,6 +270,7 @@ class UploadMethods:
# we may want to send as an album if all are photo files. # we may want to send as an album if all are photo files.
if utils.is_list_like(file): if utils.is_list_like(file):
media_captions = [] media_captions = []
document_captions = []
if utils.is_list_like(caption): if utils.is_list_like(caption):
captions = caption captions = caption
else: else: