Fix Message.download() not working when using the progress callback

This commit is contained in:
Dan 2019-01-11 13:59:18 +01:00
parent 200ed844fe
commit d5ed47f4e9

View File

@ -912,7 +912,7 @@ class Message(PyrogramType, Update):
else: else:
raise ValueError("The message doesn't contain any keyboard") raise ValueError("The message doesn't contain any keyboard")
def download(self, file_name: str = "", block: bool = True, progress: callable = None, progress_args: tuple = None): def download(self, file_name: str = "", block: bool = True, progress: callable = None, progress_args: tuple = ()):
"""Bound method *download* of :obj:`Message <pyrogram.Message>`. """Bound method *download* of :obj:`Message <pyrogram.Message>`.
Use as a shortcut for: Use as a shortcut for: