From 996dca00fb23e3cc6156b673e2487f69fc2044b5 Mon Sep 17 00:00:00 2001 From: StNicolay Date: Wed, 10 May 2023 18:49:27 +0300 Subject: [PATCH] Default /cancel now uses deletion markup --- src/handlers/commands/cancel.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/handlers/commands/cancel.rs b/src/handlers/commands/cancel.rs index e3445ad..f73de99 100644 --- a/src/handlers/commands/cancel.rs +++ b/src/handlers/commands/cancel.rs @@ -1,7 +1,10 @@ +use crate::handlers::markups::deletion_markup; use teloxide::{adaptors::Throttle, prelude::*}; /// Handles /cancel command when there's no active state pub async fn cancel(bot: Throttle, 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(()) }