From 46183842bdffa20d98b3a1f5fb689732c7011eae Mon Sep 17 00:00:00 2001 From: doryan Date: Wed, 21 Aug 2024 20:55:28 +0400 Subject: [PATCH] fix(on reply): prevent unmute action with REPLY --- src/endpoints/commands/unmute_command.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/endpoints/commands/unmute_command.rs b/src/endpoints/commands/unmute_command.rs index 77e94ce..18bfacd 100644 --- a/src/endpoints/commands/unmute_command.rs +++ b/src/endpoints/commands/unmute_command.rs @@ -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);