From 97bd5443337a5ace31aa2becdecae122bfad1449 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Wed, 5 May 2021 14:04:39 +0200 Subject: [PATCH] Fix save_file path argument docs. Closes #671 --- pyrogram/methods/advanced/save_file.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pyrogram/methods/advanced/save_file.py b/pyrogram/methods/advanced/save_file.py index 83f56eb9..bc99b859 100644 --- a/pyrogram/methods/advanced/save_file.py +++ b/pyrogram/methods/advanced/save_file.py @@ -54,8 +54,9 @@ class SaveFile(Scaffold): available yet in the Client class as an easy-to-use method). Parameters: - path (``str``): - The path of the file you want to upload that exists on your local machine. + path (``str`` | ``BinaryIO``): + The path of the file you want to upload that exists on your local machine or a binary file-like object + with its attribute ".name" set for in-memory uploads. file_id (``int``, *optional*): In case a file part expired, pass the file_id and the file_part to retry uploading that specific chunk.