diff --git a/td/telegram/ConfigManager.cpp b/td/telegram/ConfigManager.cpp index 87eaf7b34..66721e9b5 100644 --- a/td/telegram/ConfigManager.cpp +++ b/td/telegram/ConfigManager.cpp @@ -1944,6 +1944,11 @@ void ConfigManager::process_app_config(tl_object_ptr &c G()->set_option_integer("premium_gift_boost_count", get_json_value_int(std::move(key_value->value_), key)); continue; } + if (key == "quote_length_max") { + G()->set_option_integer("message_reply_quote_length_max", + get_json_value_int(std::move(key_value->value_), key)); + continue; + } new_values.push_back(std::move(key_value)); } diff --git a/td/telegram/ConfigManager.h b/td/telegram/ConfigManager.h index aba10acd5..4f96a1f0a 100644 --- a/td/telegram/ConfigManager.h +++ b/td/telegram/ConfigManager.h @@ -102,7 +102,7 @@ class ConfigManager final : public NetQueryCallback { private: struct AppConfig { - static constexpr int32 CURRENT_VERSION = 20; + static constexpr int32 CURRENT_VERSION = 21; int32 version_ = 0; int32 hash_ = 0; telegram_api::object_ptr config_; diff --git a/td/telegram/OptionManager.cpp b/td/telegram/OptionManager.cpp index 864092e4e..0d473d809 100644 --- a/td/telegram/OptionManager.cpp +++ b/td/telegram/OptionManager.cpp @@ -80,6 +80,9 @@ OptionManager::OptionManager(Td *td) if (!have_option("message_caption_length_max")) { set_option_integer("message_caption_length_max", 1024); } + if (!have_option("message_reply_quote_length_max")) { + set_option_integer("message_reply_quote_length_max", 1024); + } if (!have_option("story_caption_length_max")) { set_option_integer("story_caption_length_max", 200); }