Struct telegram_bot2::models::PromoteChatMember
source · pub struct PromoteChatMember {
pub can_manage_topics: Option<bool>,
/* private fields */
}Expand description
Use this method to promote or demote a user in a supergroup or a channel. The bot must be an administrator in the chat for this to work and must have the appropriate administrator rights. Pass False for all boolean parameters to demote a user. Returns true on success.
Fields§
§can_manage_topics: Option<bool>If the user is allowed to create, rename, close, and reopen forum topics; supergroups only
Trait Implementations§
source§impl Clone for PromoteChatMember
impl Clone for PromoteChatMember
source§fn clone(&self) -> PromoteChatMember
fn clone(&self) -> PromoteChatMember
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for PromoteChatMember
impl Debug for PromoteChatMember
source§impl<'de> Deserialize<'de> for PromoteChatMember
impl<'de> Deserialize<'de> for PromoteChatMember
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