Raw.InputStorePaymentStarsTopup
Used to top up the telegram stars balance of the current account.
inputStorePaymentStarsTopup#dddd0f56 stars:long currency:string amount:long = InputStorePaymentPurpose;
export namespace Raw {
export class InputStorePaymentStarsTopup {
constructor(params: { stars: bigint; currency: string; amount: bigint }) {}
}
}
🚫
This is a types constructor, you can’t use it as method when call invoke.
Layer: 198
Constructor ID: 0xdddd0f56
Property
stars
: bigintAmount of stars to topup
currency
: stringThree-letter iso 4217 currency code
amount
: bigintTotal price 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).