Add td_api::premiumFeatureLastSeenTimes.

This commit is contained in:
levlam 2024-02-12 23:32:01 +03:00
parent b9de5cd0f9
commit 0bdc409212
2 changed files with 8 additions and 0 deletions

View File

@ -4802,6 +4802,9 @@ premiumFeatureSavedMessagesTags = PremiumFeature;
//-and to restrict incoming messages from non-contacts using setNewChatPrivacySettings
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;
//@class PremiumStoryFeature @description Describes a story feature available to Premium users

View File

@ -104,6 +104,9 @@ static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Sli
if (premium_feature == "message_privacy") {
return td_api::make_object<td_api::premiumFeatureMessagePrivacy>();
}
if (premium_feature == "last_seen") {
return td_api::make_object<td_api::premiumFeatureLastSeenTimes>();
}
return nullptr;
}
@ -756,6 +759,8 @@ static string get_premium_source(const td_api::PremiumFeature *feature) {
return "saved_tags";
case td_api::premiumFeatureMessagePrivacy::ID:
return "message_privacy";
case td_api::premiumFeatureLastSeenTimes::ID:
return "last_seen";
default:
UNREACHABLE();
}