MessageActionPrizeStars

class pyrogram.raw.types.MessageActionPrizeStars

You won some Telegram Stars in a Telegram Star giveaway ».

Constructor of MessageAction.

Details:
  • Layer: 223

  • ID: B00C47A2

Parameters:
  • stars (int 64-bit) – The number of Telegram Stars you won

  • transaction_id (str) – ID of the telegram star transaction.

  • boost_peer (Peer) – Identifier of the peer that was automatically boosted by the winners of the giveaway.

  • giveaway_msg_id (int 32-bit) – ID of the message containing the messageMediaGiveaway

  • unclaimed (bool, optional) – If set, this indicates the reverse transaction that refunds the remaining stars to the creator of a giveaway if, when the giveaway ends, the number of members in the channel is smaller than the number of winners in the giveaway.

TL Schema

messageActionPrizeStars#b00c47a2
flags:#
unclaimed:flags.0?true
stars:long
transaction_id:string
boost_peer:Peer
giveaway_msg_id:int

= MessageAction

Parameter Tree

MessageActionPrizeStars
├── unclaimedtrue (optional)
├── starslong
├── transaction_idstring
├── boost_peerPeer
│ ├── PeerUser
│ │ └── user_idlong
│ ├── PeerChat
│ │ └── chat_idlong
│ └── PeerChannel
│ └── channel_idlong
└── giveaway_msg_idint

Example

MessageActionPrizeStars(
    stars=0,
    transaction_id="text",
    boost_peer=PeerUser(user_id=0),
    giveaway_msg_id=0,
)