Layer 227
InputInvoiceStarGiftUpgrade
Used to pay to upgrade a Gift to a collectible gift, see the collectible gifts documentation for more info on the full flow.
constructor
inputInvoiceStarGiftUpgrade#4d818d5d flags:# keep_original_details:flags.0?true stargift:InputSavedStarGift = InputInvoice;
Parameters
| Name | Type | Description |
|---|---|---|
| KeepOriginalDetails | flags .0? true | Set this flag to keep the original gift text, sender and receiver in the upgraded gift as a star Gift Attribute Original Details attribute. |
| Stargift | InputSavedStarGift | The identifier of the received gift to upgrade. |
Returns
InputInvoiceGogram Example
// Creating InputInvoiceStarGiftUpgrade constructor obj := &tg.InputInvoiceStarGiftUpgrade{ KeepOriginalDetails: nil, Stargift: &tg.InputSavedStarGift{}, }