mirror of
https://github.com/AsamK/signal-cli
synced 2025-08-28 18:10:38 +00:00
Implement replying to stories
This commit is contained in:
parent
fea19c9e20
commit
5ed9db4f08
8 changed files with 54 additions and 6 deletions
|
@ -162,6 +162,12 @@ pub enum CliCommands {
|
|||
|
||||
#[arg(long)]
|
||||
sticker: Option<String>,
|
||||
|
||||
#[arg(long)]
|
||||
story_timestamp: Option<u64>,
|
||||
|
||||
#[arg(long)]
|
||||
story_author: Option<String>,
|
||||
},
|
||||
SendContacts,
|
||||
SendPaymentNotification {
|
||||
|
|
|
@ -130,6 +130,8 @@ pub trait Rpc {
|
|||
#[allow(non_snake_case)] quoteMessage: Option<String>,
|
||||
#[allow(non_snake_case)] quoteMention: Vec<String>,
|
||||
sticker: Option<String>,
|
||||
#[allow(non_snake_case)] storyTimestamp: Option<u64>,
|
||||
#[allow(non_snake_case)] storyAuthor: Option<String>,
|
||||
) -> Result<Value>;
|
||||
|
||||
#[rpc(name = "sendContacts", params = "named")]
|
||||
|
|
|
@ -127,6 +127,8 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
quote_message,
|
||||
quote_mention,
|
||||
sticker,
|
||||
story_timestamp,
|
||||
story_author,
|
||||
} => {
|
||||
client
|
||||
.send(
|
||||
|
@ -143,6 +145,8 @@ async fn main() -> Result<(), anyhow::Error> {
|
|||
quote_message,
|
||||
quote_mention,
|
||||
sticker,
|
||||
story_timestamp,
|
||||
story_author,
|
||||
)
|
||||
.await
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue