InputFile reuse recommendations update (#1506)

* Update upload_file.rst

who the fuck even wrote this

* Update docs/api/upload_file.rst

Co-authored-by: Yana Malenko <107151775+akchonya@users.noreply.github.com>

---------

Co-authored-by: Alex Root Junior <jroot.junior@gmail.com>
Co-authored-by: Yana Malenko <107151775+akchonya@users.noreply.github.com>
This commit is contained in:
beliboba 2024-06-17 00:57:28 +03:00 committed by GitHub
parent 1df3adaba1
commit f568ef09e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -20,12 +20,10 @@ Here are the three different available builtin types of input file:
.. warning::
**Be respectful with Telegram**
**Be respectful to Telegram**
Instances of `InputFile` are reusable.
That's mean you can create instance of InputFile and sent this file multiple times but Telegram
does not recommend to do that and when you upload file once just save their `file_id`
and use it in next times.
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
=======================