fix(on reply): prevent unmute action with REPLY
This commit is contained in:
parent
1bcbb3d456
commit
46183842bd
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue