Moved dispatching into a sepparate module
This commit is contained in:
10
src/dispatching/default.rs
Normal file
10
src/dispatching/default.rs
Normal file
@@ -0,0 +1,10 @@
|
||||
use crate::prelude::*;
|
||||
|
||||
/// Handles the messages which weren't matched by any commands or states
|
||||
#[inline]
|
||||
pub async fn default(bot: Throttle<Bot>, msg: Message, locale: LocaleRef) -> crate::Result<()> {
|
||||
bot.send_message(msg.chat.id, &locale.unknown_command_use_help)
|
||||
.reply_markup(deletion_markup(locale))
|
||||
.await?;
|
||||
Ok(())
|
||||
}
|
Reference in New Issue
Block a user