Add "message_reply_quote_length_max" option.
This commit is contained in:
parent
84edd20cfd
commit
adad6d6984
|
@ -1944,6 +1944,11 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &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));
|
||||
}
|
||||
|
|
|
@ -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<telegram_api::JSONValue> config_;
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user