mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-28 18:10:38 +00:00
Implement reacting to stories
This commit is contained in:
parent
207764e0be
commit
fea19c9e20
9 changed files with 33 additions and 10 deletions
|
@ -193,6 +193,9 @@ pub enum CliCommands {
|
|||
|
||||
#[arg(short = 'r', long)]
|
||||
remove: bool,
|
||||
|
||||
#[arg(long)]
|
||||
story: bool,
|
||||
},
|
||||
SendReceipt {
|
||||
recipient: String,
|
||||
|
|
|
@ -155,6 +155,7 @@ pub trait Rpc {
|
|||
#[allow(non_snake_case)] targetAuthor: String,
|
||||
#[allow(non_snake_case)] targetTimestamp: u64,
|
||||
remove: bool,
|
||||
story: bool,
|
||||
) -> Result<Value>;
|
||||
|
||||
#[rpc(name = "sendReceipt", params = "named")]
|
||||
|
|
|
@ -164,6 +164,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
target_author,
|
||||
target_timestamp,
|
||||
remove,
|
||||
story,
|
||||
} => {
|
||||
client
|
||||
.send_reaction(
|
||||
|
@ -175,6 +176,7 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
target_author,
|
||||
target_timestamp,
|
||||
remove,
|
||||
story,
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue