pub struct MessagePremiumGiveawayWinners {
pub boosted_chat_id: i64,
pub giveaway_message_id: i64,
pub additional_chat_count: i32,
pub actual_winners_selection_date: i32,
pub only_new_members: bool,
pub was_refunded: bool,
pub month_count: i32,
pub prize_description: String,
pub winner_count: i32,
pub winner_user_ids: Vec<i64>,
pub unclaimed_prize_count: i32,
}
Expand description
A Telegram Premium giveaway with public winners has been completed for the chat
Fields§
§boosted_chat_id: i64
Identifier of the channel chat, which was automatically boosted by the winners of the giveaway for duration of the Premium subscription
giveaway_message_id: i64
Identifier of the message with the giveaway in the boosted chat
additional_chat_count: i32
Number of other chats that participated in the giveaway
actual_winners_selection_date: i32
Point in time (Unix timestamp) when the winners were selected. May be bigger than winners selection date specified in parameters of the giveaway
only_new_members: bool
True, if only new members of the chats were eligible for the giveaway
was_refunded: bool
True, if the giveaway was canceled and was fully refunded
month_count: i32
Number of months the Telegram Premium subscription will be active after code activation
prize_description: String
Additional description of the giveaway prize
winner_count: i32
Total number of winners in the giveaway
winner_user_ids: Vec<i64>
Up to 100 user identifiers of the winners of the giveaway
unclaimed_prize_count: i32
Number of undistributed prizes
Trait Implementations§
Source§impl Clone for MessagePremiumGiveawayWinners
impl Clone for MessagePremiumGiveawayWinners
Source§fn clone(&self) -> MessagePremiumGiveawayWinners
fn clone(&self) -> MessagePremiumGiveawayWinners
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for MessagePremiumGiveawayWinners
impl Default for MessagePremiumGiveawayWinners
Source§fn default() -> MessagePremiumGiveawayWinners
fn default() -> MessagePremiumGiveawayWinners
Source§impl<'de> Deserialize<'de> for MessagePremiumGiveawayWinners
impl<'de> Deserialize<'de> for MessagePremiumGiveawayWinners
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for MessagePremiumGiveawayWinners
impl PartialEq for MessagePremiumGiveawayWinners
Source§fn eq(&self, other: &MessagePremiumGiveawayWinners) -> bool
fn eq(&self, other: &MessagePremiumGiveawayWinners) -> bool
self
and other
values to be equal, and is used by ==
.