Default /cancel now uses deletion markup

This commit is contained in:
StNicolay 2023-05-10 18:49:27 +03:00
parent 8307bee4cf
commit 996dca00fb
Signed by: StNicolay
GPG Key ID: 9693D04DCD962B0D

View File

@ -1,7 +1,10 @@
use crate::handlers::markups::deletion_markup;
use teloxide::{adaptors::Throttle, prelude::*}; use teloxide::{adaptors::Throttle, prelude::*};
/// Handles /cancel command when there's no active state /// Handles /cancel command when there's no active state
pub async fn cancel(bot: Throttle<Bot>, msg: Message) -> crate::Result<()> { pub async fn cancel(bot: Throttle<Bot>, msg: Message) -> crate::Result<()> {
bot.send_message(msg.chat.id, "Nothing to cancel").await?; bot.send_message(msg.chat.id, "Nothing to cancel")
.reply_markup(deletion_markup())
.await?;
Ok(()) Ok(())
} }