Moved dispatching into a sepparate module

This commit is contained in:
2024-05-07 12:29:13 +03:00
parent 5871943c01
commit 913d90f077
9 changed files with 119 additions and 119 deletions

View 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(())
}