Raw.InputStorePaymentStarsGift

Raw.InputStorePaymentStarsGift

Used to gift telegram stars to a friend.

inputStorePaymentStarsGift#1d741ef7 user_id:InputUser stars:long currency:string amount:long = InputStorePaymentPurpose;
export namespace Raw {
  export class InputStorePaymentStarsGift {
    constructor(params: {
      userId: Raw.TypeInputUser;
      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: 0x1d741ef7

Property

  • userId : Raw.TypeInputUser

    The user to which the stars should be gifted.

  • stars : bigint

    Amount of stars to gift

  • currency : string

    Three-letter iso 4217 currency code

  • amount : bigint

    Total 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).