Skip to content

Commit 97bd544

Browse files
committed
Fix save_file path argument docs.
Closes #671
1 parent 35df2cc commit 97bd544

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

pyrogram/methods/advanced/save_file.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ async def save_file(
5454
available yet in the Client class as an easy-to-use method).
5555
5656
Parameters:
57-
path (``str``):
58-
The path of the file you want to upload that exists on your local machine.
57+
path (``str`` | ``BinaryIO``):
58+
The path of the file you want to upload that exists on your local machine or a binary file-like object
59+
with its attribute ".name" set for in-memory uploads.
5960
6061
file_id (``int``, *optional*):
6162
In case a file part expired, pass the file_id and the file_part to retry uploading that specific chunk.

0 commit comments

Comments
 (0)