Support changes to "story_caption_length_max" option.

This commit is contained in:
levlam 2023-07-21 16:38:24 +03:00
parent 09aa2ec01e
commit 615ddd71e5
2 changed files with 5 additions and 1 deletions

View File

@ -1986,6 +1986,8 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
options.set_option_integer("chat_folder_count_max", options.get_option_integer("dialog_filters_limit_premium", 20));
options.set_option_integer("chat_folder_chosen_chat_count_max",
options.get_option_integer("dialog_filters_chats_limit_premium", 200));
options.set_option_integer("story_caption_length_max",
options.get_option_integer("story_caption_length_limit_premium", 2048));
options.set_option_integer("bio_length_max", options.get_option_integer("about_length_limit_premium", 140));
options.set_option_integer("saved_animations_limit", options.get_option_integer("saved_gifs_limit_premium", 400));
options.set_option_integer("favorite_stickers_limit",
@ -2002,6 +2004,8 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
options.set_option_integer("chat_folder_count_max", options.get_option_integer("dialog_filters_limit_default", 10));
options.set_option_integer("chat_folder_chosen_chat_count_max",
options.get_option_integer("dialog_filters_chats_limit_default", 100));
options.set_option_integer("story_caption_length_max",
options.get_option_integer("story_caption_length_limit_default", 200));
options.set_option_integer("bio_length_max", options.get_option_integer("about_length_limit_default", 70));
options.set_option_integer("saved_animations_limit", options.get_option_integer("saved_gifs_limit_default", 200));
options.set_option_integer("favorite_stickers_limit",

View File

@ -80,7 +80,7 @@ OptionManager::OptionManager(Td *td)
set_option_integer("message_caption_length_max", 1024);
}
if (!have_option("story_caption_length_max")) {
set_option_integer("story_caption_length_max", 2048);
set_option_integer("story_caption_length_max", 200);
}
if (!have_option("bio_length_max")) {
set_option_integer("bio_length_max", 70);