diff --git a/td/telegram/files/FileManager.cpp b/td/telegram/files/FileManager.cpp index a25d5fe86..cf1279c4b 100644 --- a/td/telegram/files/FileManager.cpp +++ b/td/telegram/files/FileManager.cpp @@ -3031,7 +3031,7 @@ Result FileManager::get_input_file_id(FileType type, const tl_object_ptr string hash; if (false && new_type == FileType::Photo) { auto r_stat = stat(path); - if (r_stat.is_ok() && r_stat.ok().size_ > 0 && r_stat.ok().size_ < 1000000) { + if (r_stat.is_ok() && r_stat.ok().size_ > 0 && r_stat.ok().size_ < 5000000) { auto r_file_content = read_file_str(path, r_stat.ok().size_); if (r_file_content.is_ok()) { hash = sha256(r_file_content.ok());