mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-11-29 08:55:48 +00:00
Implement replying to stories
This commit is contained in:
1 parent
fea19c9e20
commit
5ed9db4f08
8 files changed
+54
-6
No files matched your search
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user