Enum telegram_bot2::models::BotCommandScope
source · pub enum BotCommandScope {
Default,
AllPrivateChats,
AllGroupChats,
AllChatAdministrator,
Chat {
chat_id: i128,
},
ChatAdministrator {
chat_id: i128,
},
ChatMember {
chat_id: i128,
user_id: i128,
},
}Expand description
This object represents the scope to which bot commands are applied
Variants§
Default
Represents the default scope of bot commands. Default commands are used if no commands with a narrower scope are specified for the user
AllPrivateChats
Represents the scope of bot commands, covering all private chats
AllGroupChats
Represents the scope of bot commands, covering all group and supergroup chats
AllChatAdministrator
Represents the scope of bot commands, covering all group and supergroup chat administrators
Chat
Represents the scope of bot commands, covering a specific chat
ChatAdministrator
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat
ChatMember
Fields
Represents the scope of bot commands, covering a specific member of a group or supergroup chat
Trait Implementations§
source§impl Clone for BotCommandScope
impl Clone for BotCommandScope
source§fn clone(&self) -> BotCommandScope
fn clone(&self) -> BotCommandScope
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 BotCommandScope
impl Debug for BotCommandScope
source§impl Default for BotCommandScope
impl Default for BotCommandScope
source§fn default() -> BotCommandScope
fn default() -> BotCommandScope
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BotCommandScope
impl<'de> Deserialize<'de> for BotCommandScope
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