pass_manager/src/handlers/default.rs

14 lines
433 B
Rust
Raw Normal View History

use crate::handlers::markups::deletion_markup;
2023-04-27 13:25:23 +00:00
use teloxide::{adaptors::Throttle, prelude::*};
2023-05-09 17:27:58 +00:00
/// Handles the messages which weren't matched by any commands or states
2023-04-27 13:25:23 +00:00
pub async fn default(bot: Throttle<Bot>, msg: Message) -> crate::Result<()> {
2023-05-09 17:27:58 +00:00
bot.send_message(
msg.chat.id,
"Unknown command. Use /help command to get the list of commands",
)
.reply_markup(deletion_markup())
.await?;
2023-04-27 13:25:23 +00:00
Ok(())
}