Layer 220
InputInvoiceStarGiftResale
Used to buy a collectible gift currently up on resale, see here for more info on the full flow.
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
InputInvoiceGogram Example
// Creating InputInvoiceStarGiftResale constructor obj := &tg.InputInvoiceStarGiftResale{ Slug: "...", ToId: &tg.InputPeerUser{UserID: int64(123456789)}, // Optional fields: // Ton: true, }