Struct tbot::methods::GetMyCommands
source · pub struct GetMyCommands<'a> { /* private fields */ }
Expand description
Gets the list of the bot’s commands.
Represents the getMyCommands
method.
Implementations§
source§impl<'a> GetMyCommands<'a>
impl<'a> GetMyCommands<'a>
sourcepub fn scope(self, scope: Scope) -> Self
pub fn scope(self, scope: Scope) -> Self
Configures the scope of the dedicated command list that you want to
retrive. 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
Configures the langauge of the dedicated command that you want to
retrieve. Reflects the language_code
parameter.
source§impl GetMyCommands<'_>
impl GetMyCommands<'_>
sourcepub async fn call(self) -> Result<Vec<BotCommand>, MethodCall>
pub async fn call(self) -> Result<Vec<BotCommand>, MethodCall>
Calls the method.
Trait Implementations§
source§impl<'a> Clone for GetMyCommands<'a>
impl<'a> Clone for GetMyCommands<'a>
source§fn clone(&self) -> GetMyCommands<'a>
fn clone(&self) -> GetMyCommands<'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