From c827eaab6fac507ffd01c9f807151f693e14267a Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 5 Jul 2023 13:08:10 +0300 Subject: [PATCH] Support FILE_PART_INVALID errors for sendMedia. --- td/telegram/files/FileManager.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index bcde54ded..a2285e36a 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -944,6 +944,9 @@ vector FileManager::get_missing_file_parts(const Status &error) { result.push_back(r_file_part.ok()); } } + if (error_message == "FILE_PART_INVALID") { + result.push_back(0); + } return result; }