Remove "themed_emoji_statuses_sticker_set_id" option.
This commit is contained in:
parent
124d0d4043
commit
6516210321
@ -371,7 +371,7 @@ photo has_stickers:Bool minithumbnail:minithumbnail sizes:vector<photoSize> = Ph
|
|||||||
//@type Sticker type
|
//@type Sticker type
|
||||||
//@mask_position Position where the mask is placed; may be null even the sticker is a mask
|
//@mask_position Position where the mask is placed; may be null even the sticker is a mask
|
||||||
//@custom_emoji_id Identifier of the emoji if the sticker is a custom emoji
|
//@custom_emoji_id Identifier of the emoji if the sticker is a custom emoji
|
||||||
//@has_text_color True, if the sticker must be repainted to a text color; for custom emoji only
|
//@has_text_color True, if the sticker must be repainted to a text color in messages, the color of the Telegram Premium badge in emoji status, or other appropriate color in other places; for custom emoji only
|
||||||
//@outline Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner
|
//@outline Sticker's outline represented as a list of closed vector paths; may be empty. The coordinate system origin is in the upper-left corner
|
||||||
//@thumbnail Sticker thumbnail in WEBP or JPEG format; may be null
|
//@thumbnail Sticker thumbnail in WEBP or JPEG format; may be null
|
||||||
//@is_premium True, if only Premium users can use the sticker
|
//@is_premium True, if only Premium users can use the sticker
|
||||||
@ -590,8 +590,7 @@ chatAdministratorRights can_manage_chat:Bool can_change_info:Bool can_post_messa
|
|||||||
premiumPaymentOption currency:string amount:int53 discount_percentage:int32 month_count:int32 store_product_id:string payment_link:InternalLinkType = PremiumPaymentOption;
|
premiumPaymentOption currency:string amount:int53 discount_percentage:int32 month_count:int32 store_product_id:string payment_link:InternalLinkType = PremiumPaymentOption;
|
||||||
|
|
||||||
|
|
||||||
//@description Describes a custom emoji to be shown instead of the Telegram Premium badge
|
//@description Describes a custom emoji to be shown instead of the Telegram Premium badge @custom_emoji_id Identifier of the custom emoji in stickerFormatTgs format
|
||||||
//@custom_emoji_id Identifier of the custom emoji in stickerFormatTgs format. If the custom emoji belongs to the sticker set getOption("themed_emoji_statuses_sticker_set_id"), then it's color must be changed to the color of the Telegram Premium badge
|
|
||||||
emojiStatus custom_emoji_id:int64 = EmojiStatus;
|
emojiStatus custom_emoji_id:int64 = EmojiStatus;
|
||||||
|
|
||||||
//@description Contains a list of emoji statuses @emoji_statuses The list of emoji statuses
|
//@description Contains a list of emoji statuses @emoji_statuses The list of emoji statuses
|
||||||
@ -6622,7 +6621,7 @@ getAttachmentMenuBot bot_user_id:int53 = AttachmentMenuBot;
|
|||||||
toggleBotIsAddedToAttachmentMenu bot_user_id:int53 is_added:Bool allow_write_access:Bool = Ok;
|
toggleBotIsAddedToAttachmentMenu bot_user_id:int53 is_added:Bool allow_write_access:Bool = Ok;
|
||||||
|
|
||||||
|
|
||||||
//@description Returns up to 8 themed emoji statuses, which color must be changed to the color of the Telegram Premium badge
|
//@description Returns up to 8 emoji statuses, which should be shown right after the default Premium Badge in the emoji status list
|
||||||
getThemedEmojiStatuses = EmojiStatuses;
|
getThemedEmojiStatuses = EmojiStatuses;
|
||||||
|
|
||||||
//@description Returns recent emoji statuses
|
//@description Returns recent emoji statuses
|
||||||
|
@ -1499,9 +1499,9 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
|||||||
for (auto &key_value : static_cast<telegram_api::jsonObject *>(config.get())->value_) {
|
for (auto &key_value : static_cast<telegram_api::jsonObject *>(config.get())->value_) {
|
||||||
Slice key = key_value->key_;
|
Slice key = key_value->key_;
|
||||||
telegram_api::JSONValue *value = key_value->value_.get();
|
telegram_api::JSONValue *value = key_value->value_.get();
|
||||||
if (key == "getfile_experimental_params" || key == "message_animated_emoji_max" ||
|
if (key == "default_emoji_statuses_stickerset_id" || key == "getfile_experimental_params" ||
|
||||||
key == "reactions_in_chat_max" || key == "stickers_emoji_cache_time" || key == "test" ||
|
key == "message_animated_emoji_max" || key == "reactions_in_chat_max" || key == "stickers_emoji_cache_time" ||
|
||||||
key == "upload_max_fileparts_default" || key == "upload_max_fileparts_premium" ||
|
key == "test" || key == "upload_max_fileparts_default" || key == "upload_max_fileparts_premium" ||
|
||||||
key == "wallet_blockchain_name" || key == "wallet_config" || key == "wallet_enabled") {
|
key == "wallet_blockchain_name" || key == "wallet_config" || key == "wallet_enabled") {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
@ -1837,11 +1837,6 @@ void ConfigManager::process_app_config(tl_object_ptr<telegram_api::JSONValue> &c
|
|||||||
stickers_normal_by_emoji_per_premium_num = get_json_value_int(std::move(key_value->value_), key);
|
stickers_normal_by_emoji_per_premium_num = get_json_value_int(std::move(key_value->value_), key);
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (key == "default_emoji_statuses_stickerset_id") {
|
|
||||||
auto setting_value = get_json_value_long(std::move(key_value->value_), key);
|
|
||||||
G()->set_option_integer("themed_emoji_statuses_sticker_set_id", setting_value);
|
|
||||||
continue;
|
|
||||||
}
|
|
||||||
if (key == "reactions_user_max_default" || key == "reactions_user_max_premium") {
|
if (key == "reactions_user_max_default" || key == "reactions_user_max_premium") {
|
||||||
auto setting_value = get_json_value_int(std::move(key_value->value_), key);
|
auto setting_value = get_json_value_int(std::move(key_value->value_), key);
|
||||||
G()->set_option_integer(key, setting_value);
|
G()->set_option_integer(key, setting_value);
|
||||||
|
@ -112,17 +112,14 @@ OptionManager::OptionManager(Td *td)
|
|||||||
if (!have_option("chat_filter_chosen_chat_count_max")) {
|
if (!have_option("chat_filter_chosen_chat_count_max")) {
|
||||||
set_option_integer("chat_filter_chosen_chat_count_max", G()->is_test_dc() ? 5 : 100);
|
set_option_integer("chat_filter_chosen_chat_count_max", G()->is_test_dc() ? 5 : 100);
|
||||||
}
|
}
|
||||||
if (!have_option("themed_emoji_statuses_sticker_set_id")) {
|
|
||||||
auto sticker_set_id =
|
|
||||||
G()->is_test_dc() ? static_cast<int64>(2964141614563343) : static_cast<int64>(773947703670341676);
|
|
||||||
set_option_integer("themed_emoji_statuses_sticker_set_id", sticker_set_id);
|
|
||||||
}
|
|
||||||
if (!have_option("forum_member_count_min")) {
|
if (!have_option("forum_member_count_min")) {
|
||||||
set_option_integer("forum_member_count_min", G()->is_test_dc() ? 3 : 100);
|
set_option_integer("forum_member_count_min", G()->is_test_dc() ? 3 : 100);
|
||||||
}
|
}
|
||||||
if (!have_option("aggressive_anti_spam_supergroup_member_count_min")) {
|
if (!have_option("aggressive_anti_spam_supergroup_member_count_min")) {
|
||||||
set_option_integer("aggressive_anti_spam_supergroup_member_count_min", G()->is_test_dc() ? 1 : 100);
|
set_option_integer("aggressive_anti_spam_supergroup_member_count_min", G()->is_test_dc() ? 1 : 100);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
set_option_empty("themed_emoji_statuses_sticker_set_id");
|
||||||
}
|
}
|
||||||
|
|
||||||
OptionManager::~OptionManager() = default;
|
OptionManager::~OptionManager() = default;
|
||||||
|
Loading…
Reference in New Issue
Block a user