Skip to main content

inputInvoiceStarGift

Used to buy a Telegram Star Gift, see here » for more info.

type tg.InputInvoiceStarGift struct { /* ... */ }

Implements InputInvoice.

Fields​

NameTypeRequiredDescription
HideNamebool—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)
IncludeUpgradebool—Also pay for an eventual upgrade of the gift to a collectible gift ».
PeerInputPeerClassyesReceiver of the gift.
GiftIDint64yesIdentifier of the gift, from starGift.id
MessageTextWithEntities—Optional message, attached with the gift. The maximum length for this field is specified in the stargifts_message_length_max client configuration value ».

References​