fix(on reply): prevent unmute action with REPLY

This commit is contained in:
doryan 2024-08-21 20:55:28 +04:00
parent 1bcbb3d456
commit 46183842bd

View File

@ -20,12 +20,6 @@ use crate::{
}; };
pub async fn unmute(bot: Bot, message: Message, command: CommandObject) -> HandlerResult { pub async fn unmute(bot: Bot, message: Message, command: CommandObject) -> HandlerResult {
if command.args.len() == 0 {
send_html(bot, message, UNMUTE_COMMAND_HELP).await?;
return Ok(EventReturn::Cancel);
}
let (chat_id, mut handler_entity): (i64, HandlerEntity) = get_chat_data(&bot, &message); let (chat_id, mut handler_entity): (i64, HandlerEntity) = get_chat_data(&bot, &message);
let args: Vec<&'static str> = cast_boxed(command.args); let args: Vec<&'static str> = cast_boxed(command.args);