From f568ef09e8d5fac674217d01c934d499c3c1088a Mon Sep 17 00:00:00 2001 From: beliboba <73661136+beliboba@users.noreply.github.com> Date: Mon, 17 Jun 2024 00:57:28 +0300 Subject: [PATCH] `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 Co-authored-by: Yana Malenko <107151775+akchonya@users.noreply.github.com> --- docs/api/upload_file.rst | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docs/api/upload_file.rst b/docs/api/upload_file.rst index 715474f7..24fa726f 100644 --- a/docs/api/upload_file.rst +++ b/docs/api/upload_file.rst @@ -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 =======================