Fix caption being None

This would later be an empty string with some modifications that
were removed upon upgrading to layer 75, which changed where the
captions are used and their naming.
This commit is contained in:
Lonami Exo 2018-03-07 09:09:05 +01:00
parent 7201482ebd
commit e3adec5ea9

View File

@ -1200,7 +1200,7 @@ class TelegramClient(TelegramBareClient):
# region Uploading files
def send_file(self, entity, file, caption=None,
def send_file(self, entity, file, caption='',
force_document=False, progress_callback=None,
reply_to=None,
attributes=None,
@ -1420,7 +1420,7 @@ class TelegramClient(TelegramBareClient):
kwargs['is_voice_note'] = True
return self.send_file(*args, **kwargs)
def _send_album(self, entity, files, caption=None,
def _send_album(self, entity, files, caption='',
progress_callback=None, reply_to=None,
parse_mode='md'):
"""Specialized version of .send_file for albums"""