Add --quote-attachment paramter to send command

Fixes #1318
This commit is contained in:
AsamK 2023-10-10 19:54:45 +02:00
parent 91ab0b12b0
commit 7b5b5776f0
7 changed files with 64 additions and 22 deletions

View file

@ -164,6 +164,9 @@ pub enum CliCommands {
#[arg(long)]
quote_mention: Vec<String>,
#[arg(long)]
quote_attachment: Vec<String>,
#[arg(long)]
sticker: Option<String>,

View file

@ -143,6 +143,7 @@ pub trait Rpc {
#[allow(non_snake_case)] quoteAuthor: Option<String>,
#[allow(non_snake_case)] quoteMessage: Option<String>,
#[allow(non_snake_case)] quoteMention: Vec<String>,
#[allow(non_snake_case)] quoteAttachment: Vec<String>,
sticker: Option<String>,
#[allow(non_snake_case)] storyTimestamp: Option<u64>,
#[allow(non_snake_case)] storyAuthor: Option<String>,

View file

@ -140,6 +140,7 @@ async fn handle_command(
quote_author,
quote_message,
quote_mention,
quote_attachment,
sticker,
story_timestamp,
story_author,
@ -158,6 +159,7 @@ async fn handle_command(
quote_author,
quote_message,
quote_mention,
quote_attachment,
sticker,
story_timestamp,
story_author,