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:
223ID:
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_details →
true (optional)└── stargift →
InputSavedStarGift│ └── msg_id →
int│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ └── saved_id →
long└── slug →
stringExample
InputInvoiceStarGiftUpgrade(
stargift=InputSavedStarGiftUser(msg_id=0),
)