Struct botapi::gen_types::BotCommandScopeChat
source · pub struct BotCommandScopeChat { /* private fields */ }
Expand description
Represents the scope of bot commands, covering a specific chat.
Implementations§
source§impl BotCommandScopeChat
impl BotCommandScopeChat
pub fn noskip(self) -> NoSkipBotCommandScopeChat
source§impl BotCommandScopeChat
impl BotCommandScopeChat
pub fn new(chat_id: i64) -> Self
sourcepub fn get_tg_type<'a>(&'a self) -> Cow<'a, str>
pub fn get_tg_type<'a>(&'a self) -> Cow<'a, str>
Scope type, must be chat
sourcepub fn get_tg_type_ref<'a>(&'a self) -> &'a str
pub fn get_tg_type_ref<'a>(&'a self) -> &'a str
Scope type, must be chat
sourcepub fn get_chat_id<'a>(&'a self) -> i64
pub fn get_chat_id<'a>(&'a self) -> i64
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
sourcepub fn get_chat_id_ref<'a>(&'a self) -> i64
pub fn get_chat_id_ref<'a>(&'a self) -> i64
Unique identifier for the target chat or username of the target supergroup (in the format @supergroupusername)
Trait Implementations§
source§impl Clone for BotCommandScopeChat
impl Clone for BotCommandScopeChat
source§fn clone(&self) -> BotCommandScopeChat
fn clone(&self) -> BotCommandScopeChat
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 BotCommandScopeChat
impl Debug for BotCommandScopeChat
source§impl Default for BotCommandScopeChat
impl Default for BotCommandScopeChat
source§fn default() -> BotCommandScopeChat
fn default() -> BotCommandScopeChat
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for BotCommandScopeChat
impl<'de> Deserialize<'de> for BotCommandScopeChat
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 From<NoSkipBotCommandScopeChat> for BotCommandScopeChat
impl From<NoSkipBotCommandScopeChat> for BotCommandScopeChat
source§fn from(t: NoSkipBotCommandScopeChat) -> Self
fn from(t: NoSkipBotCommandScopeChat) -> Self
Converts to this type from the input type.
source§impl Into<NoSkipBotCommandScopeChat> for BotCommandScopeChat
impl Into<NoSkipBotCommandScopeChat> for BotCommandScopeChat
source§fn into(self) -> NoSkipBotCommandScopeChat
fn into(self) -> NoSkipBotCommandScopeChat
Converts this type into the (usually inferred) input type.