pub struct ChatBoostStatus {
pub boost_url: String,
pub applied_slot_ids: Vec<i32>,
pub level: i32,
pub gift_code_boost_count: i32,
pub boost_count: i32,
pub current_level_boost_count: i32,
pub next_level_boost_count: i32,
pub premium_member_count: i32,
pub premium_member_percentage: f64,
pub prepaid_giveaways: Vec<PrepaidGiveaway>,
}Expand description
Describes current boost status of a chat
Fields§
§boost_url: StringAn HTTP URL, which can be used to boost the chat
applied_slot_ids: Vec<i32>Identifiers of boost slots of the current user applied to the chat
level: i32Current boost level of the chat
gift_code_boost_count: i32The number of boosts received by the chat from created Telegram Premium gift codes and giveaways; always 0 if the current user isn’t an administrator in the chat
boost_count: i32The number of boosts received by the chat
current_level_boost_count: i32The number of boosts added to reach the current level
next_level_boost_count: i32The number of boosts needed to reach the next level; 0 if the next level isn’t available
Approximate number of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat
A percentage of Telegram Premium subscribers joined the chat; always 0 if the current user isn’t an administrator in the chat
prepaid_giveaways: Vec<PrepaidGiveaway>The list of prepaid giveaways available for the chat; only for chat administrators
Trait Implementations§
Source§impl Clone for ChatBoostStatus
impl Clone for ChatBoostStatus
Source§fn clone(&self) -> ChatBoostStatus
fn clone(&self) -> ChatBoostStatus
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ChatBoostStatus
impl Debug for ChatBoostStatus
Source§impl Default for ChatBoostStatus
impl Default for ChatBoostStatus
Source§fn default() -> ChatBoostStatus
fn default() -> ChatBoostStatus
Source§impl<'de> Deserialize<'de> for ChatBoostStatus
impl<'de> Deserialize<'de> for ChatBoostStatus
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 ChatBoostStatus
impl PartialEq for ChatBoostStatus
Source§fn eq(&self, other: &ChatBoostStatus) -> bool
fn eq(&self, other: &ChatBoostStatus) -> bool
self and other values to be equal, and is used by ==.