Add td_api::premiumFeatureBusiness.

This commit is contained in:
levlam 2024-03-29 11:28:48 +03:00
parent e5d7108f1a
commit 260b9cdf9e
2 changed files with 8 additions and 0 deletions

View File

@ -4992,6 +4992,9 @@ premiumFeatureMessagePrivacy = PremiumFeature;
//@description The ability to view last seen and read times of other users even they can't view last seen or read time for the current user
premiumFeatureLastSeenTimes = PremiumFeature;
//@description The ability to use Business features
premiumFeatureBusiness = PremiumFeature;
//@class BusinessFeature @description Describes a feature available to Business user accounts

View File

@ -108,6 +108,9 @@ static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Sli
if (premium_feature == "last_seen") {
return td_api::make_object<td_api::premiumFeatureLastSeenTimes>();
}
if (premium_feature == "business") {
return td_api::make_object<td_api::premiumFeatureBusiness>();
}
if (G()->is_test_dc()) {
LOG(ERROR) << "Receive unsupported premium feature " << premium_feature;
}
@ -811,6 +814,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
return "message_privacy";
case td_api::premiumFeatureLastSeenTimes::ID:
return "last_seen";
case td_api::premiumFeatureBusiness::ID:
return "business";
default:
UNREACHABLE();
}