payments.ConvertStarGift
- class pyrogram.raw.functions.payments.ConvertStarGift
Convert a received gift » into Telegram Stars: this will permanently destroy the gift, converting it into starGift.convert_stars Telegram Stars, added to the user’s balance.
- Details:
Layer:
223ID:
74BF076B
- Parameters:
stargift (
InputSavedStarGift) – The gift to convert.- Returns:
bool
TL Schema
payments.convertStarGift#74bf076b
stargift:InputSavedStarGift
= Bool
Parameter Tree
ConvertStarGift
└── stargift →
InputSavedStarGift│ └── msg_id →
int│ ├── peer →
InputPeer│ │ ├──
InputPeerEmpty│ │ ├──
InputPeerSelf│ │ ├──
InputPeerChat│ │ ├──
InputPeerUser│ │ ├──
InputPeerChannel│ │ ├──
InputPeerUserFromMessage│ │ └──
InputPeerChannelFromMessage│ └── saved_id →
long└── slug →
stringExample
await app.invoke(
ConvertStarGift(
stargift=InputSavedStarGiftUser(msg_id=0),
)
)