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: 223

  • ID: 74BF076B

Parameters:

stargift (InputSavedStarGift) – The gift to convert.

Returns:

bool

TL Schema

payments.convertStarGift#74bf076b
stargift:InputSavedStarGift

= Bool

Parameter Tree

ConvertStarGift
└── stargiftInputSavedStarGift
│ └── msg_idint
│ ├── peerInputPeer
│ │ ├── InputPeerEmpty
│ │ ├── InputPeerSelf
│ │ ├── InputPeerChat
│ │ ├── InputPeerUser
│ │ ├── InputPeerChannel
│ │ ├── InputPeerUserFromMessage
│ │ └── InputPeerChannelFromMessage
│ └── saved_idlong
└── slugstring

Example

await app.invoke(
    ConvertStarGift(
        stargift=InputSavedStarGiftUser(msg_id=0),
    )
)