Add td_api::premiumFeatureMessageEffects.
This commit is contained in:
parent
0056687a52
commit
0e4c9d3641
@ -5261,6 +5261,9 @@ premiumFeatureLastSeenTimes = PremiumFeature;
|
|||||||
//@description The ability to use Business features
|
//@description The ability to use Business features
|
||||||
premiumFeatureBusiness = PremiumFeature;
|
premiumFeatureBusiness = PremiumFeature;
|
||||||
|
|
||||||
|
//@description The ability to use all available message effects
|
||||||
|
premiumFeatureMessageEffects = PremiumFeature;
|
||||||
|
|
||||||
|
|
||||||
//@class BusinessFeature @description Describes a feature available to Business user accounts
|
//@class BusinessFeature @description Describes a feature available to Business user accounts
|
||||||
|
|
||||||
|
@ -112,6 +112,9 @@ static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Sli
|
|||||||
if (premium_feature == "business") {
|
if (premium_feature == "business") {
|
||||||
return td_api::make_object<td_api::premiumFeatureBusiness>();
|
return td_api::make_object<td_api::premiumFeatureBusiness>();
|
||||||
}
|
}
|
||||||
|
if (premium_feature == "effects") {
|
||||||
|
return td_api::make_object<td_api::premiumFeatureMessageEffects>();
|
||||||
|
}
|
||||||
if (G()->is_test_dc()) {
|
if (G()->is_test_dc()) {
|
||||||
LOG(ERROR) << "Receive unsupported premium feature " << premium_feature;
|
LOG(ERROR) << "Receive unsupported premium feature " << premium_feature;
|
||||||
}
|
}
|
||||||
@ -844,6 +847,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
|
|||||||
return "last_seen";
|
return "last_seen";
|
||||||
case td_api::premiumFeatureBusiness::ID:
|
case td_api::premiumFeatureBusiness::ID:
|
||||||
return "business";
|
return "business";
|
||||||
|
case td_api::premiumFeatureMessageEffects::ID:
|
||||||
|
return "effects";
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
@ -1032,7 +1037,7 @@ void get_premium_features(Td *td, const td_api::object_ptr<td_api::PremiumSource
|
|||||||
"premium_features",
|
"premium_features",
|
||||||
"stories,more_upload,double_limits,last_seen,voice_to_text,faster_download,translations,animated_"
|
"stories,more_upload,double_limits,last_seen,voice_to_text,faster_download,translations,animated_"
|
||||||
"emoji,emoji_status,saved_tags,peer_colors,wallpapers,profile_badge,message_privacy,advanced_chat_"
|
"emoji,emoji_status,saved_tags,peer_colors,wallpapers,profile_badge,message_privacy,advanced_chat_"
|
||||||
"management,no_ads,app_icons,infinite_reactions,animated_userpics,premium_stickers"),
|
"management,no_ads,app_icons,infinite_reactions,animated_userpics,premium_stickers,effects"),
|
||||||
',');
|
',');
|
||||||
vector<td_api::object_ptr<td_api::PremiumFeature>> features;
|
vector<td_api::object_ptr<td_api::PremiumFeature>> features;
|
||||||
for (const auto &premium_feature : premium_features) {
|
for (const auto &premium_feature : premium_features) {
|
||||||
|
Loading…
Reference in New Issue
Block a user