Fix Message.download() not working when using the progress callback
This commit is contained in:
parent
200ed844fe
commit
d5ed47f4e9
@ -912,7 +912,7 @@ class Message(PyrogramType, Update):
|
||||
else:
|
||||
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>`.
|
||||
|
||||
Use as a shortcut for:
|
||||
|
Loading…
Reference in New Issue
Block a user