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

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
HideName flags.0?true 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 flags.2?true Also pay for an eventual upgrade of the gift to a collectible gift.
Peer InputPeer Receiver of the gift.
GiftId long Identifier of the gift, from star Gift. id
Message flags.1?TextWithEntities Optional message, attached with the gift. The maximum length for this field is specified in the stargifts_message_length_max client configuration value.

Returns

InputInvoice

Gogram Example

// Creating InputInvoiceStarGift constructor
obj := &tg.InputInvoiceStarGift{
    Peer: &tg.InputPeerUser{UserID: int64(123456789)},
    GiftId: int64(0),

    // Optional fields:
    // HideName: true,
    // IncludeUpgrade: true,
    // Message: &tg.TextWithEntities{},
}