Default /cancel now uses deletion markup
This commit is contained in:
parent
8307bee4cf
commit
996dca00fb
@ -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(())
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user