From 2adc01be7f03cc21c2ce3c7a96bab8a5a3dfaf47 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Thu, 11 Jun 2020 22:03:59 +0200 Subject: [PATCH] Remove unneeded file_ref arg from Message.download --- pyrogram/client/types/messages_and_media/message.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pyrogram/client/types/messages_and_media/message.py b/pyrogram/client/types/messages_and_media/message.py index 575672e2..215f86d0 100644 --- a/pyrogram/client/types/messages_and_media/message.py +++ b/pyrogram/client/types/messages_and_media/message.py @@ -2984,7 +2984,6 @@ class Message(Object, Update): def download( self, - file_ref: str = None, file_name: str = "", block: bool = True, progress: callable = None, @@ -3004,10 +3003,6 @@ class Message(Object, Update): message.download() Parameters: - file_ref (``str``, *optional*): - A valid file reference obtained by a recently fetched media message. - To be used in combination with a file id in case a file reference is needed. - file_name (``str``, *optional*): A custom *file_name* to be used instead of the one provided by Telegram. By default, all files are downloaded in the *downloads* folder in your working directory. @@ -3049,7 +3044,6 @@ class Message(Object, Update): """ return self._client.download_media( message=self, - file_ref=file_ref, file_name=file_name, block=block, progress=progress,