From 0901ebce4deea159ee4368d3e023f33630c9294a Mon Sep 17 00:00:00 2001 From: doryan Date: Fri, 11 Apr 2025 12:10:52 +0400 Subject: [PATCH] feat(variable): remove redundant variable --- src/handlers/commands/info_commands.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/handlers/commands/info_commands.rs b/src/handlers/commands/info_commands.rs index 34f0cd8..270cc09 100644 --- a/src/handlers/commands/info_commands.rs +++ b/src/handlers/commands/info_commands.rs @@ -18,10 +18,9 @@ pub async fn info_commands_endpoint( message: Message, command_object: CommandObject, ) -> HandlerResult { - let chat_id = message.chat().id(); match command_object.command.deref() { - "help" => send_html(&bot, chat_id, HELP_COMMAND_TEXT).await, - "privacy" => send_html(&bot, chat_id, PRIVACY_COMMAND_TEXT).await, + "help" => send_html(&bot, &message, HELP_COMMAND_TEXT).await, + "privacy" => send_html(&bot, &message, PRIVACY_COMMAND_TEXT).await, _ => Ok(EventReturn::Cancel), } }