This commit is contained in:
Lonami 2018-12-20 10:49:46 +01:00 committed by GitHub
parent 2a231d4c63
commit 4d80ef2f79
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -118,6 +118,7 @@ class UploadMethods(ButtonMethods, MessageParseMethods, UserMethods):
"""
if not caption:
caption = ''
# First check if the user passed an iterable, in which case
# we may want to send as an album if all are photo files.
if utils.is_list_like(file):