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), } }