Default /cancel now uses deletion markup
This commit is contained in:
		@@ -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<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(())
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user