pub struct ChatBoostSourceGiveaway {
pub source: String,
pub giveaway_message_id: i64,
pub user: Option<User>,
pub prize_star_count: Option<i64>,
pub is_unclaimed: Option<bool>,
pub extra: BTreeMap<String, Value>,
}Expand description
The boost was obtained by the creation of a Telegram Premium or a Telegram Star giveaway. This boosts the chat 4 times for the duration of the corresponding Telegram Premium subscription for Telegram Premium giveaways and prize_star_count / 500 times for one year for Telegram Star giveaways.
Fields§
§source: StringSource of the boost, always ‘giveaway’
giveaway_message_id: i64Identifier of a message in the chat with the giveaway; the message could have been deleted already. May be 0 if the message isn’t sent yet.
user: Option<User>User that won the prize in the giveaway if any; for Telegram Premium giveaways only
prize_star_count: Option<i64>The number of Telegram Stars to be split between giveaway winners; for Telegram Star giveaways only
is_unclaimed: Option<bool>True, if the giveaway was completed, but there was no user to win the prize
extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for ChatBoostSourceGiveaway
impl Clone for ChatBoostSourceGiveaway
Source§impl Debug for ChatBoostSourceGiveaway
impl Debug for ChatBoostSourceGiveaway
Source§impl<'de> Deserialize<'de> for ChatBoostSourceGiveaway
impl<'de> Deserialize<'de> for ChatBoostSourceGiveaway
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ChatBoostSourceGiveaway> for ChatBoostSourceUnion
impl From<ChatBoostSourceGiveaway> for ChatBoostSourceUnion
Source§fn from(value: ChatBoostSourceGiveaway) -> Self
fn from(value: ChatBoostSourceGiveaway) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ChatBoostSourceGiveaway
impl PartialEq for ChatBoostSourceGiveaway
Source§impl Serialize for ChatBoostSourceGiveaway
impl Serialize for ChatBoostSourceGiveaway
impl StructuralPartialEq for ChatBoostSourceGiveaway
Auto Trait Implementations§
impl Freeze for ChatBoostSourceGiveaway
impl RefUnwindSafe for ChatBoostSourceGiveaway
impl Send for ChatBoostSourceGiveaway
impl Sync for ChatBoostSourceGiveaway
impl Unpin for ChatBoostSourceGiveaway
impl UnsafeUnpin for ChatBoostSourceGiveaway
impl UnwindSafe for ChatBoostSourceGiveaway
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more