mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-07 15:34:52 +00:00
Fix Message.download() not working when using the progress callback
This commit is contained in:
parent
200ed844fe
commit
d5ed47f4e9
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue