payments.UpgradeStarGift

class pyrogram.raw.functions.payments.UpgradeStarGift

Upgrade a gift to a collectible gift: can only be used if the upgrade was already paid by the gift sender; see here » for more info on the full flow (including the different flow to use in case the upgrade was not paid by the gift sender).

Details:
  • Layer: 223

  • ID: AED6E4F5

Parameters:
  • stargift (InputSavedStarGift) – The 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.

Returns:

Updates

TL Schema

payments.upgradeStarGift#aed6e4f5
flags:#
keep_original_details:flags.0?true
stargift:InputSavedStarGift

= Updates

Parameter Tree

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

Example

await app.invoke(
    UpgradeStarGift(
        keep_original_details=None,
        stargift=InputSavedStarGiftUser(msg_id=0),
    )
)