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

@ -19,13 +19,7 @@ use crate::{
},
};
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);
}
pub async fn unmute(bot: Bot, message: Message, command: CommandObject) -> HandlerResult {
let (chat_id, mut handler_entity): (i64, HandlerEntity) = get_chat_data(&bot, &message);
let args: Vec<&'static str> = cast_boxed(command.args);