feat(variable): remove redundant variable
This commit is contained in:
parent
fe84289def
commit
0901ebce4d
|
@ -18,10 +18,9 @@ pub async fn info_commands_endpoint(
|
||||||
message: Message,
|
message: Message,
|
||||||
command_object: CommandObject,
|
command_object: CommandObject,
|
||||||
) -> HandlerResult {
|
) -> HandlerResult {
|
||||||
let chat_id = message.chat().id();
|
|
||||||
match command_object.command.deref() {
|
match command_object.command.deref() {
|
||||||
"help" => send_html(&bot, chat_id, HELP_COMMAND_TEXT).await,
|
"help" => send_html(&bot, &message, HELP_COMMAND_TEXT).await,
|
||||||
"privacy" => send_html(&bot, chat_id, PRIVACY_COMMAND_TEXT).await,
|
"privacy" => send_html(&bot, &message, PRIVACY_COMMAND_TEXT).await,
|
||||||
_ => Ok(EventReturn::Cancel),
|
_ => Ok(EventReturn::Cancel),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue