Update docs/api/upload_file.rst

Co-authored-by: Yana Malenko <107151775+akchonya@users.noreply.github.com>
This commit is contained in:
Alex Root Junior 2024-06-17 00:56:52 +03:00 committed by GitHub
parent 5db3d7b3c1
commit 2b6b79bc58
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -23,8 +23,7 @@ Here are the three different available builtin types of input file:
**Be respectful to Telegram**
Instances of `InputFile` are reusable.
That means you can create multiple instances of InputFile for the same file and send them each but Telegram
does not recommend it. Instead you can send one instance of InputFile for the same picture and send it multiple times using its `file_id`.
That means you can create an instance of InputFile and send it multiple times. However, Telegram does not recommend doing this. Instead, once you upload a file, save its `file_id` and reuse that later.
Upload from file system
=======================