Implement replying to stories

This commit is contained in:
AsamK 2022-10-30 18:18:21 +01:00
parent fea19c9e20
commit 5ed9db4f08
8 changed files with 54 additions and 6 deletions

View file

@ -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 {

View file

@ -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")]

View file

@ -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
}