2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Fix save_file path argument docs.

Closes #671
This commit is contained in:
Dan 2021-05-05 14:04:39 +02:00
parent 35df2cc1f3
commit 97bd544333

View File

@ -54,8 +54,9 @@ class SaveFile(Scaffold):
available yet in the Client class as an easy-to-use method). available yet in the Client class as an easy-to-use method).
Parameters: Parameters:
path (``str``): path (``str`` | ``BinaryIO``):
The path of the file you want to upload that exists on your local machine. 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*): file_id (``int``, *optional*):
In case a file part expired, pass the file_id and the file_part to retry uploading that specific chunk. In case a file part expired, pass the file_id and the file_part to retry uploading that specific chunk.