Add td_api::getPremiumStickers.
This commit is contained in:
parent
e81424ee86
commit
444d083f48
@ -6371,6 +6371,9 @@ getPremiumLimit limit_type:PremiumLimitType = PremiumLimit;
|
||||
//@description Returns information about features, available to Premium users @source Source of the request; pass null if the method is called from some non-standard source
|
||||
getPremiumFeatures source:PremiumSource = PremiumFeatures;
|
||||
|
||||
//@description Returns examples of premium stickers for demonstration purposes
|
||||
getPremiumStickers = Stickers;
|
||||
|
||||
//@description Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen @feature The viewed premium feature
|
||||
viewPremiumFeature feature:PremiumFeature = Ok;
|
||||
|
||||
|
@ -7854,6 +7854,11 @@ void Td::on_request(uint64 id, const td_api::getPremiumFeatures &request) {
|
||||
get_premium_features(this, request.source_, std::move(promise));
|
||||
}
|
||||
|
||||
void Td::on_request(uint64 id, const td_api::getPremiumStickers &request) {
|
||||
CHECK_IS_USER();
|
||||
CREATE_REQUEST(SearchStickersRequest, "⭐️⭐️", 100);
|
||||
}
|
||||
|
||||
void Td::on_request(uint64 id, const td_api::viewPremiumFeature &request) {
|
||||
CHECK_IS_USER();
|
||||
CREATE_OK_REQUEST_PROMISE();
|
||||
|
@ -1297,6 +1297,8 @@ class Td final : public Actor {
|
||||
|
||||
void on_request(uint64 id, const td_api::getPremiumFeatures &request);
|
||||
|
||||
void on_request(uint64 id, const td_api::getPremiumStickers &request);
|
||||
|
||||
void on_request(uint64 id, const td_api::viewPremiumFeature &request);
|
||||
|
||||
void on_request(uint64 id, const td_api::clickPremiumSubscriptionButton &request);
|
||||
|
@ -2550,6 +2550,8 @@ class CliClient final : public Actor {
|
||||
auto source = td_api::make_object<td_api::premiumSourceLimitExceeded>(
|
||||
td_api::make_object<td_api::premiumLimitTypeChatFilterCount>());
|
||||
send_request(td_api::make_object<td_api::getPremiumFeatures>(std::move(source)));
|
||||
} else if (op == "gprst") {
|
||||
send_request(td_api::make_object<td_api::getPremiumStickers>());
|
||||
} else if (op == "vprf") {
|
||||
auto feature = td_api::make_object<td_api::premiumFeatureProfileBadge>();
|
||||
send_request(td_api::make_object<td_api::viewPremiumFeature>(std::move(feature)));
|
||||
|
Loading…
Reference in New Issue
Block a user