pub struct BotCommandScopeChatAdministratorsBuilder { /* private fields */ }Expand description
Represents the scope of bot commands, covering all administrators of a specific group or supergroup chat.
Implementations§
source§impl BotCommandScopeChatAdministratorsBuilder
impl BotCommandScopeChatAdministratorsBuilder
pub fn new(chat_id: i64) -> Self
sourcepub fn set_chat_id(self, chat_id: i64) -> Self
pub fn set_chat_id(self, chat_id: i64) -> Self
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
pub fn build(self) -> BotCommandScopeChatAdministrators
Trait Implementations§
source§impl Clone for BotCommandScopeChatAdministratorsBuilder
impl Clone for BotCommandScopeChatAdministratorsBuilder
source§fn clone(&self) -> BotCommandScopeChatAdministratorsBuilder
fn clone(&self) -> BotCommandScopeChatAdministratorsBuilder
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 Default for BotCommandScopeChatAdministratorsBuilder
impl Default for BotCommandScopeChatAdministratorsBuilder
source§fn default() -> BotCommandScopeChatAdministratorsBuilder
fn default() -> BotCommandScopeChatAdministratorsBuilder
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BotCommandScopeChatAdministratorsBuilder
impl<'de> Deserialize<'de> for BotCommandScopeChatAdministratorsBuilder
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