mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 05:18:10 +00:00
Fix broken download_media progress args
This commit is contained in:
parent
49b18c600d
commit
9c91720104
@ -1214,7 +1214,7 @@ class Client(Methods, BaseClient):
|
|||||||
version: int = 0,
|
version: int = 0,
|
||||||
size: int = None,
|
size: int = None,
|
||||||
progress: callable = None,
|
progress: callable = None,
|
||||||
progress_args: tuple = None) -> str:
|
progress_args: tuple = ()) -> str:
|
||||||
with self.media_sessions_lock:
|
with self.media_sessions_lock:
|
||||||
session = self.media_sessions.get(dc_id, None)
|
session = self.media_sessions.get(dc_id, None)
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ class DownloadMedia(BaseClient):
|
|||||||
file_name: str = "",
|
file_name: str = "",
|
||||||
block: bool = True,
|
block: bool = True,
|
||||||
progress: callable = None,
|
progress: callable = None,
|
||||||
progress_args: tuple = None):
|
progress_args: tuple = ()):
|
||||||
"""Use this method to download the media from a Message.
|
"""Use this method to download the media from a Message.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user