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

Parameters

Name Type Description
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: "Hello, World!",
    ToId: &tg.InputPeerUser{UserID: int64(777000)},

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