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:
|
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:
|
||||||
|
Loading…
Reference in New Issue
Block a user