Raw.StarsTopupOption

Raw.StarsTopupOption

Telegram stars topup option.

starsTopupOption#bd915c0 flags:# extended:flags.1?true stars:long store_product:flags.0?string currency:string amount:long = StarsTopupOption;
export namespace Raw {
  export class StarsTopupOption {
    constructor(params: {
      extended?: boolean;
      stars: bigint;
      storeProduct?: string;
      currency: string;
      amount: bigint;
    }) {}
  }
}
🚫

This is a types constructor, you can’t use it as method when call invoke.

Layer: 185
Constructor ID: 0xbd915c0

Property

  • extended : boolean or undefined

    If set, the option must only be shown in the full list of topup options.

  • stars : bigint

    Amount of telegram stars.

  • storeProduct : string or undefined

    Identifier of the store product associated with the option, official apps only.

  • currency : string

    Three-letter iso 4217 currency code

  • amount : bigint

    Price of the product in the smallest units of the currency (integer, not float/double). for example, for a price of us 1.45 pass amount = 145. see the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).