Layer 220
constructor
inputInvoiceStarGiftResale#c39f5324 flags:# ton:flags.0?true slug:string to_id:InputPeer = InputInvoice;

Parameters

Name Type Description
Flags # Flags, see TL conditional fields
Ton flags.0?true Buy the gift using TON.
Slug string Slug of the gift to buy.
ToId InputPeer The receiver of the gift.

Returns

InputInvoice

Gogram Example

// Creating InputInvoiceStarGiftResale constructor
obj := &tg.InputInvoiceStarGiftResale{
    Slug: "...",
    ToId: &tg.InputPeerUser{UserID: int64(123456789)},

    // Optional fields:
    // Ton: true,
}