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

References