pub enum BotCommandScope {
Default,
AllPrivateChats,
AllGroupChats,
AllChatAdministrators,
Chat {
chat_id: ChatId,
},
ChatAdministrators {
chat_id: ChatId,
},
ChatMember {
chat_id: ChatId,
user_id: i64,
},
}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.
AllChatAdministrators
Represents the scope of bot commands, covering all group and supergroup chat administrators.
Chat
Represents the scope of bot commands, covering a specific chat.
Fields
ChatAdministrators
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.
Fields
ChatMember
Represents the scope of bot commands, covering a specific member of a group or supergroup chat.
Trait Implementations§
Source§impl Debug for BotCommandScope
impl Debug for BotCommandScope
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
Source§impl PartialEq for BotCommandScope
impl PartialEq for BotCommandScope
Source§impl Serialize for BotCommandScope
impl Serialize for BotCommandScope
impl StructuralPartialEq for BotCommandScope
Auto Trait Implementations§
impl Freeze for BotCommandScope
impl RefUnwindSafe for BotCommandScope
impl Send for BotCommandScope
impl Sync for BotCommandScope
impl Unpin for BotCommandScope
impl UnwindSafe for BotCommandScope
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