Add "can_preload_weather" option.

This commit is contained in:
levlam 2024-07-23 12:27:07 +03:00
parent 5a01890272
commit 1e3ea181d4
2 changed files with 5 additions and 1 deletions

View File

@ -2042,6 +2042,10 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
G()->set_option_integer("bot_media_preview_count_max", get_json_value_int(std::move(key_value->value_), key));
continue;
}
if (key == "story_weather_preload") {
G()->set_option_integer("can_preload_weather", get_json_value_bool(std::move(key_value->value_), key));
continue;
}
new_values.push_back(std::move(key_value));
}

View File

@ -85,7 +85,7 @@ class ConfigManager final : public NetQueryCallback {
private:
struct AppConfig {
static constexpr int32 CURRENT_VERSION = 52;
static constexpr int32 CURRENT_VERSION = 53;
int32 version_ = 0;
int32 hash_ = 0;
telegram_api::object_ptr<telegram_api::JSONValue> config_;