mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-16 12:07:13 +00:00
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:
parent
1df3adaba1
commit
f568ef09e8
1 changed files with 2 additions and 4 deletions
|
|
@ -20,12 +20,10 @@ Here are the three different available builtin types of input file:
|
||||||
|
|
||||||
.. warning::
|
.. warning::
|
||||||
|
|
||||||
**Be respectful with Telegram**
|
**Be respectful to Telegram**
|
||||||
|
|
||||||
Instances of `InputFile` are reusable.
|
Instances of `InputFile` are reusable.
|
||||||
That's mean you can create instance of InputFile and sent this file multiple times but Telegram
|
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.
|
||||||
does not recommend to do that and when you upload file once just save their `file_id`
|
|
||||||
and use it in next times.
|
|
||||||
|
|
||||||
Upload from file system
|
Upload from file system
|
||||||
=======================
|
=======================
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue