Link Search Menu Expand Document

Constructor: inputInvoiceStarGiftUpgrade

Back to constructors index

Used to pay to upgrade a Gift to a collectible gift, see the collectible gifts » documentation for more info on the full flow.

Attributes:

NameTypeRequiredDescription
keep_original_detailsBoolOptionalSet this flag to keep the original gift text, sender and receiver in the upgraded gift as a starGiftAttributeOriginalDetails attribute.
stargiftInputSavedStarGiftYesThe identifier of the received gift to upgrade.

Type: InputInvoice

Example:

$inputInvoiceStarGiftUpgrade = ['_' => 'inputInvoiceStarGiftUpgrade', 'keep_original_details' => Bool, 'stargift' => InputSavedStarGift];