Add td_api::premiumFeatureBackgroundForBoth.

This commit is contained in:
levlam 2023-11-28 14:11:46 +03:00
parent e51da2da32
commit dd5bd9fff6
2 changed files with 8 additions and 0 deletions

View File

@ -4537,6 +4537,9 @@ premiumFeatureChatBoost = PremiumFeature;
//@description The ability to choose accent color for replies and user profile
premiumFeatureAccentColor = PremiumFeature;
//@description The ability to set private chat background for both users
premiumFeatureBackgroundForBoth = PremiumFeature;
//@class PremiumStoryFeature @description Describes a story feature available to Premium users

View File

@ -94,6 +94,9 @@ static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Sli
if (premium_feature == "peer_color") {
return td_api::make_object<td_api::premiumFeatureAccentColor>();
}
if (premium_feature == "wallpaper") {
return td_api::make_object<td_api::premiumFeatureBackgroundForBoth>();
}
return nullptr;
}
@ -728,6 +731,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
return "channel_boost";
case td_api::premiumFeatureAccentColor::ID:
return "peer_color";
case td_api::premiumFeatureBackgroundForBoth::ID:
return "wallpaper";
default:
UNREACHABLE();
}