mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-30 02:50:39 +00:00
Add sendMessageRequestResponse command
This commit is contained in:
parent
2c0ad7feb7
commit
d84362eb0f
11 changed files with 210 additions and 0 deletions
|
@ -437,6 +437,23 @@ async fn handle_command(
|
|||
.start_change_number(cli.account, number, voice, captcha)
|
||||
.await
|
||||
}
|
||||
CliCommands::SendMessageRequestResponse {
|
||||
recipient,
|
||||
group_id,
|
||||
r#type,
|
||||
} => {
|
||||
client
|
||||
.send_message_request_response(
|
||||
cli.account,
|
||||
recipient,
|
||||
group_id,
|
||||
match r#type {
|
||||
cli::MessageRequestResponseType::Accept => "accept".to_owned(),
|
||||
cli::MessageRequestResponseType::Delete => "delete".to_owned(),
|
||||
},
|
||||
)
|
||||
.await
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue