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:
223ID:
AED6E4F5
- Parameters:
stargift (
InputSavedStarGift) – The gift to upgradekeep_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:
TL Schema
payments.upgradeStarGift#aed6e4f5
flags:#
keep_original_details:flags.0?true
stargift:InputSavedStarGift
= Updates
Parameter Tree
UpgradeStarGift
├── keep_original_details →
true (optional)└── stargift →
InputSavedStarGift│ └── msg_id →
int│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ └── saved_id →
long└── slug →
stringExample
await app.invoke(
UpgradeStarGift(
keep_original_details=None,
stargift=InputSavedStarGiftUser(msg_id=0),
)
)