2
0
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:
Dan 2018-12-15 08:50:08 +01:00
parent 49b18c600d
commit 9c91720104
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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: