InputInvoiceStarGiftUpgrade

class pyrogram.raw.types.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 of InputInvoice.

Details:
  • Layer: 223

  • ID: 4D818D5D

Parameters:
  • stargift (InputSavedStarGift) – The identifier of the received gift to upgrade.

  • keep_original_details (bool, optional) – Set this flag to keep the original gift text, sender and receiver in the upgraded gift as a starGiftAttributeOriginalDetails attribute.

TL Schema

inputInvoiceStarGiftUpgrade#4d818d5d
flags:#
keep_original_details:flags.0?true
stargift:InputSavedStarGift

= InputInvoice

Parameter Tree

InputInvoiceStarGiftUpgrade
├── keep_original_detailstrue (optional)
└── stargiftInputSavedStarGift
│ └── msg_idint
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_idlong
└── slugstring

Example

InputInvoiceStarGiftUpgrade(
    stargift=InputSavedStarGiftUser(msg_id=0),
)