Link Search Menu Expand Document

Constructor: inputInvoiceStarGift

Back to constructors index

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

Attributes:

NameTypeRequiredDescription
hide_nameBoolOptionalIf 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_upgradeBoolOptional
peerUsername, chat ID, Update, Message or InputPeerOptional
gift_idlongYesIdentifier of the gift, from starGift.id
messageTextWithEntitiesOptionalOptional message, attached with the gift.
The maximum length for this field is specified in the stargifts_message_length_max client configuration value ».

Type: InputInvoice

Example:

$inputInvoiceStarGift = ['_' => 'inputInvoiceStarGift', 'hide_name' => Bool, 'include_upgrade' => Bool, 'peer' => InputPeer, 'gift_id' => long, 'message' => TextWithEntities];