From 3b06eeefe5cdfd4eef50ebbefd7c61c1f05f57b6 Mon Sep 17 00:00:00 2001 From: omg-xtao <100690902+omg-xtao@users.noreply.github.com> Date: Sun, 1 Oct 2023 13:50:32 +0000 Subject: [PATCH] feat: modify local mode --- telegram-bot-api/Client.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/telegram-bot-api/Client.cpp b/telegram-bot-api/Client.cpp index 4bb4f01..a46614f 100644 --- a/telegram-bot-api/Client.cpp +++ b/telegram-bot-api/Client.cpp @@ -8202,7 +8202,7 @@ td::string Client::get_local_file_path(td::Slice file_uri) { td_api::object_ptr Client::get_input_file(const Query *query, td::Slice field_name, td::Slice file_id, bool force_file) const { if (!file_id.empty()) { - if (parameters_->local_mode_) { + if (parameters_->local_mode_ && false) { td::Slice file_protocol{"file:/"}; if (td::begins_with(file_id, file_protocol)) { return make_object(get_local_file_path(file_id.substr(file_protocol.size()))); @@ -13518,7 +13518,7 @@ void Client::json_store_file(td::JsonObjectScope &object, const td_api::file *fi object("file_size", file->size_); } if (with_path && file->local_->is_downloading_completed_) { - if (parameters_->local_mode_) { + if (parameters_->local_mode_ && false) { if (td::check_utf8(file->local_->path_)) { object("file_path", file->local_->path_); } else {