inputInvoiceStarGift #

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

Layer 223

inputInvoiceStarGift#e8625e92 flags:# hide_name:flags.0?true include_upgrade:flags.2?true peer:InputPeer gift_id:long message:flags.1?TextWithEntities = InputInvoice;

Parameters #

NameTypeDescription
flags#Flags, see TL conditional fields
hide_nameflags.0?trueIf 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)
include_upgradeflags.2?trueAlso pay for an eventual upgrade of the gift to a collectible gift ».
peerInputPeerReceiver of the gift.
gift_idlongIdentifier of the gift, from starGift.id
messageflags.1?TextWithEntitiesOptional message, attached with the gift.
The maximum length for this field is specified in the stargifts_message_length_max client configuration value ».

Type #

InputInvoice

Telegram Gifts #

Users can send Gifts to their friends. The recipients of gifts can display them on their profile pages or turn them into Telegram Stars ». Telegram Stars can be used for many things, including supporting creators and buying services in mini apps.

starGift #

Represents a star gift, see here » for more info.

Client configuration #

The MTProto API has multiple configuration parameters that can be fetched with the appropriate methods.