Raw.InputInvoiceStarGift

Raw.InputInvoiceStarGift

Used to buy a telegram star gift, see here for more info.

inputInvoiceStarGift#e8625e92 flags:# hide_name:flags.0?true include_upgrade:flags.2?true peer:InputPeer gift_id:long message:flags.1?TextWithEntities = InputInvoice;
export namespace Raw {
  export class InputInvoiceStarGift {
    constructor(params: {
      hideName?: boolean;
      includeUpgrade?: boolean;
      peer: Raw.TypeInputPeer;
      giftId: bigint;
      message?: Raw.TypeTextWithEntities;
    }) {}
  }
}
🚫

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

Layer: 198
Constructor ID: 0xe8625e92

Property

  • hideName : boolean or undefined

    If set, your name will be hidden if the destination user decides to display the gift on their profile (they will still see that you sent the gift)

  • includeUpgrade : boolean or undefined
  • peer : Raw.TypeInputPeer
  • giftId : bigint

    Identifier of the gift, from stargift.id

  • message : Raw.TypeTextWithEntities or undefined

    Optional message, attached with the gift. the maximum length for this field is specified in the stargiftsMessageLengthMax client configuration value.