aboutsummaryrefslogtreecommitdiffhomepage
path: root/td/telegram/Premium.cpp
diff options
context:
space:
mode:
authorlevlam <levlam@telegram.org>2025-03-07 15:10:25 +0300
committerlevlam <levlam@telegram.org>2025-03-07 15:10:25 +0300
commit85994650c4a4241990d562d2203c60bf22b81dfa (patch)
tree11ec20c92fe1579f73bae7b7f3443f17a1700e4f /td/telegram/Premium.cpp
parent16ca19038c5fe84224f823412d10728d79a3ab37 (diff)
Minor improvements.
Diffstat (limited to 'td/telegram/Premium.cpp')
-rw-r--r--td/telegram/Premium.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/td/telegram/Premium.cpp b/td/telegram/Premium.cpp
index 79c958cf2..50d1b9945 100644
--- a/td/telegram/Premium.cpp
+++ b/td/telegram/Premium.cpp
@@ -44,6 +44,8 @@
#include "td/utils/SliceBuilder.h"
#include "td/utils/Status.h"
+#include <algorithm>
+
namespace td {
static td_api::object_ptr<td_api::PremiumFeature> get_premium_feature_object(Slice premium_feature) {
@@ -1235,7 +1237,8 @@ void get_premium_state(Td *td, Promise<td_api::object_ptr<td_api::premiumState>>
td->create_handler<GetPremiumPromoQuery>(std::move(promise))->send();
}
-void get_premium_gift_options(Td *td, Promise<td_api::object_ptr<td_api::premiumGiftPaymentOptions>> &&promise) {
+void get_premium_gift_payment_options(Td *td,
+ Promise<td_api::object_ptr<td_api::premiumGiftPaymentOptions>> &&promise) {
td->stickers_manager_->load_premium_gift_sticker_set(
PromiseCreator::lambda([td, promise = std::move(promise)](Result<Unit> &&result) mutable {
if (result.is_error()) {