// // Copyright Aliaksei Levin (levlam@telegram.org), Arseny Smirnov (arseny30@gmail.com) 2014-2024 // // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) // #pragma once #include "td/telegram/DialogId.h" #include "td/telegram/MessageFullId.h" #include "td/telegram/td_api.h" #include "td/telegram/telegram_api.h" #include "td/utils/common.h" #include "td/utils/Promise.h" #include "td/utils/Slice.h" #include "td/utils/Status.h" namespace td { class Td; Result> get_boost_input_peer(Td *td, DialogId dialog_id); const vector &get_premium_limit_keys(); void get_premium_limit(const td_api::object_ptr &limit_type, Promise> &&promise); void get_premium_features(Td *td, const td_api::object_ptr &source, Promise> &&promise); void get_business_features(Td *td, const td_api::object_ptr &source, Promise> &&promise); void view_premium_feature(Td *td, const td_api::object_ptr &feature, Promise &&promise); void click_premium_subscription_button(Td *td, Promise &&promise); void get_premium_state(Td *td, Promise> &&promise); void get_premium_gift_code_options(Td *td, DialogId boosted_dialog_id, Promise> &&promise); void check_premium_gift_code(Td *td, const string &code, Promise> &&promise); void apply_premium_gift_code(Td *td, const string &code, Promise &&promise); void launch_prepaid_premium_giveaway(Td *td, int64 giveaway_id, td_api::object_ptr &¶meters, Promise &&promise); void get_premium_giveaway_info(Td *td, MessageFullId message_full_id, Promise> &&promise); void get_star_payment_options(Td *td, Promise> &&promise); void get_star_transactions(Td *td, const string &offset, td_api::object_ptr &&direction, Promise> &&promise); void can_purchase_premium(Td *td, td_api::object_ptr &&purpose, Promise &&promise); void assign_app_store_transaction(Td *td, const string &receipt, td_api::object_ptr &&purpose, Promise &&promise); void assign_play_market_transaction(Td *td, const string &package_name, const string &store_product_id, const string &purchase_token, td_api::object_ptr &&purpose, Promise &&promise); } // namespace td