Add starPaymentOption.is_additional.
This commit is contained in:
parent
dbf6ba045a
commit
48de651558
@ -827,7 +827,8 @@ premiumGiftCodeInfo creator_id:MessageSender creation_date:int32 is_from_giveawa
|
||||
//@amount The amount to pay, in the smallest units of the currency
|
||||
//@star_count Number of stars that will be purchased
|
||||
//@store_product_id Identifier of the store product associated with the option; may be empty if none
|
||||
starPaymentOption currency:string amount:int53 star_count:int53 store_product_id:string = StarPaymentOption;
|
||||
//@is_additional True, if the option must be shown only in the full list of payment options
|
||||
starPaymentOption currency:string amount:int53 star_count:int53 store_product_id:string is_additional:Bool = StarPaymentOption;
|
||||
|
||||
//@description Contains a list of options for buying Telegram stars @options The list of options
|
||||
starPaymentOptions options:vector<starPaymentOption> = StarPaymentOptions;
|
||||
|
@ -628,8 +628,8 @@ class GetStarsTopupOptionsQuery final : public Td::ResultHandler {
|
||||
auto results = result_ptr.move_as_ok();
|
||||
vector<td_api::object_ptr<td_api::starPaymentOption>> options;
|
||||
for (auto &result : results) {
|
||||
options.push_back(td_api::make_object<td_api::starPaymentOption>(result->currency_, result->amount_,
|
||||
result->stars_, result->store_product_));
|
||||
options.push_back(td_api::make_object<td_api::starPaymentOption>(
|
||||
result->currency_, result->amount_, result->stars_, result->store_product_, result->extended_));
|
||||
}
|
||||
|
||||
promise_.set_value(td_api::make_object<td_api::starPaymentOptions>(std::move(options)));
|
||||
|
Loading…
Reference in New Issue
Block a user