Rename getPremiumStickers to getPremiumStickerExamples.

This commit is contained in:
levlam 2022-08-01 15:42:02 +03:00
parent a67155a145
commit 235418521f
4 changed files with 5 additions and 5 deletions

View File

@ -6461,7 +6461,7 @@ getPremiumLimit limit_type:PremiumLimitType = PremiumLimit;
getPremiumFeatures source:PremiumSource = PremiumFeatures; getPremiumFeatures source:PremiumSource = PremiumFeatures;
//@description Returns examples of premium stickers for demonstration purposes //@description Returns examples of premium stickers for demonstration purposes
getPremiumStickers = Stickers; getPremiumStickerExamples = Stickers;
//@description Informs TDLib that the user viewed detailed information about a Premium feature on the Premium features screen @feature The viewed premium feature //@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; viewPremiumFeature feature:PremiumFeature = Ok;

View File

@ -7904,7 +7904,7 @@ void Td::on_request(uint64 id, const td_api::getPremiumFeatures &request) {
get_premium_features(this, request.source_, std::move(promise)); get_premium_features(this, request.source_, std::move(promise));
} }
void Td::on_request(uint64 id, const td_api::getPremiumStickers &request) { void Td::on_request(uint64 id, const td_api::getPremiumStickerExamples &request) {
CHECK_IS_USER(); CHECK_IS_USER();
CREATE_REQUEST(SearchStickersRequest, "⭐️⭐️", 100); CREATE_REQUEST(SearchStickersRequest, "⭐️⭐️", 100);
} }

View File

@ -1299,7 +1299,7 @@ class Td final : public Actor {
void on_request(uint64 id, const td_api::getPremiumFeatures &request); 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::getPremiumStickerExamples &request);
void on_request(uint64 id, const td_api::viewPremiumFeature &request); void on_request(uint64 id, const td_api::viewPremiumFeature &request);

View File

@ -2582,8 +2582,8 @@ class CliClient final : public Actor {
auto source = td_api::make_object<td_api::premiumSourceLimitExceeded>( auto source = td_api::make_object<td_api::premiumSourceLimitExceeded>(
td_api::make_object<td_api::premiumLimitTypeChatFilterCount>()); td_api::make_object<td_api::premiumLimitTypeChatFilterCount>());
send_request(td_api::make_object<td_api::getPremiumFeatures>(std::move(source))); send_request(td_api::make_object<td_api::getPremiumFeatures>(std::move(source)));
} else if (op == "gprst") { } else if (op == "gprse") {
send_request(td_api::make_object<td_api::getPremiumStickers>()); send_request(td_api::make_object<td_api::getPremiumStickerExamples>());
} else if (op == "vprf") { } else if (op == "vprf") {
auto feature = td_api::make_object<td_api::premiumFeatureProfileBadge>(); auto feature = td_api::make_object<td_api::premiumFeatureProfileBadge>();
send_request(td_api::make_object<td_api::viewPremiumFeature>(std::move(feature))); send_request(td_api::make_object<td_api::viewPremiumFeature>(std::move(feature)));