2024-05-13 13:58:56 +03:00

10 lines
315 B
Rust

use crate::prelude::*;
/// Handles /cancel command when there's no active state
pub async fn cancel(bot: Throttle<Bot>, msg: Message, locale: LocaleRef) -> crate::Result<()> {
bot.send_message(msg.chat.id, &locale.nothing_to_cancel)
.reply_markup(deletion_markup(locale))
.await?;
Ok(())
}