Skip to content

StarPaymentOption

Type · TDLib 1.8.67 · d1085f9c

Describes an option for buying Telegram Stars. Use telegramPaymentPurposeStars for out-of-store payments

StarPaymentOption(
  currency: string,
  amount: int53,
  star_count: int53,
  store_product_id: string,
  is_additional: Bool
) → StarPaymentOption

currency

string

ISO 4217 currency code for the payment

amount

int53

The amount to pay, in the smallest units of the currency

star_count

int53

Number of Telegram Stars that will be purchased

store_product_id

string

Identifier of the store product associated with the option; may be empty if none

is_additional

Bool

True, if the option must be shown only in the full list of payment options