MessageActionPrizeStars
- class pyrogram.raw.types.MessageActionPrizeStars
You won some Telegram Stars in a Telegram Star giveaway ».
Constructor of
MessageAction.- Details:
Layer:
223ID:
B00C47A2
- Parameters:
stars (
int64-bit) – The number of Telegram Stars you wontransaction_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 (
int32-bit) – ID of the message containing the messageMediaGiveawayunclaimed (
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
├── unclaimed →
true (optional)├── stars →
long├── transaction_id →
string├── boost_peer →
Peer│ ├──
PeerUser│ │ └── user_id →
long│ ├──
PeerChat│ │ └── chat_id →
long│ └──
PeerChannel│ └── channel_id →
long└── giveaway_msg_id →
intExample
MessageActionPrizeStars(
stars=0,
transaction_id="text",
boost_peer=PeerUser(user_id=0),
giveaway_msg_id=0,
)