Struct tbot::methods::SetMyCommands
source · pub struct SetMyCommands<'a> { /* private fields */ }
Expand description
Sets the list of the bot’s commands.
Represents the setMyCommands
method.
Implementations§
source§impl<'a> SetMyCommands<'a>
impl<'a> SetMyCommands<'a>
sourcepub fn scope(self, scope: Scope) -> Self
pub fn scope(self, scope: Scope) -> Self
Speicifies the scope for which the list of bot commands is applied.
Reflects the scope
parameter.
sourcepub fn language_code(self, language_code: impl Into<String>) -> Self
pub fn language_code(self, language_code: impl Into<String>) -> Self
Specifies the language for this list of bot commands.
Reflects the language_code
parameter.
source§impl SetMyCommands<'_>
impl SetMyCommands<'_>
sourcepub async fn call(self) -> Result<(), MethodCall>
pub async fn call(self) -> Result<(), MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for SetMyCommands<'a>
impl<'a> Clone for SetMyCommands<'a>
source§fn clone(&self) -> SetMyCommands<'a>
fn clone(&self) -> SetMyCommands<'a>
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 more