Add td_api::premiumFeatureSavedMessagesTags.

This commit is contained in:
levlam 2024-01-30 03:11:23 +03:00
parent 930a3ccdca
commit 1ce1761190
2 changed files with 8 additions and 0 deletions

View File

@ -4773,6 +4773,9 @@ premiumFeatureAccentColor = PremiumFeature;
//@description The ability to set private chat background for both users //@description The ability to set private chat background for both users
premiumFeatureBackgroundForBoth = PremiumFeature; premiumFeatureBackgroundForBoth = PremiumFeature;
//@description The ability to use tags in Saved Messages
premiumFeatureSavedMessagesTags = PremiumFeature;
//@class PremiumStoryFeature @description Describes a story feature available to Premium users //@class PremiumStoryFeature @description Describes a story feature available to Premium users

View File

@ -98,6 +98,9 @@ static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Sli
if (premium_feature == "wallpapers") { if (premium_feature == "wallpapers") {
return td_api::make_object<td_api::premiumFeatureBackgroundForBoth>(); return td_api::make_object<td_api::premiumFeatureBackgroundForBoth>();
} }
if (premium_feature == "saved_tags") {
return td_api::make_object<td_api::premiumFeatureSavedMessagesTags>();
}
return nullptr; return nullptr;
} }
@ -747,6 +750,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
return "peer_colors"; return "peer_colors";
case td_api::premiumFeatureBackgroundForBoth::ID: case td_api::premiumFeatureBackgroundForBoth::ID:
return "wallpapers"; return "wallpapers";
case td_api::premiumFeatureSavedMessagesTags::ID:
return "saved_tags";
default: default:
UNREACHABLE(); UNREACHABLE();
} }