Struct telexide_fork::framework::Framework
source · pub struct Framework { /* private fields */ }Expand description
A utility for easily managing commands.
Refer to the module-level documentation for more detail
Implementations§
source§impl Framework
impl Framework
sourcepub fn add_command(&mut self, command: &TelegramCommand)
pub fn add_command(&mut self, command: &TelegramCommand)
add a command to the registered commands
sourcepub fn get_commands(&self) -> &Vec<TelegramCommand>
pub fn get_commands(&self) -> &Vec<TelegramCommand>
get all registered commands
sourcepub fn fire_commands(&self, context: Context, update: Update)
pub fn fire_commands(&self, context: Context, update: Update)
fires off all commands matching the content in the update