-use clap::StructOpt;
+use clap::Parser;
use jsonrpc_client_transports::{RpcError, TypedSubscriptionStream};
use jsonrpc_core::{futures_util::StreamExt, Value};
use std::{path::PathBuf, time::Duration};
quote_message,
quote_mention,
sticker,
+ story_timestamp,
+ story_author,
} => {
client
.send(
quote_message,
quote_mention,
sticker,
+ story_timestamp,
+ story_author,
)
.await
}
cli::CliCommands::SendContacts => client.send_contacts(cli.account).await,
+ cli::CliCommands::SendPaymentNotification {
+ recipient,
+ receipt,
+ note,
+ } => {
+ client
+ .send_payment_notification(cli.account, recipient, receipt, note)
+ .await
+ }
cli::CliCommands::SendReaction {
recipient,
group_id,
target_author,
target_timestamp,
remove,
+ story,
} => {
client
.send_reaction(
target_author,
target_timestamp,
remove,
+ story,
)
.await
}
family_name,
about,
about_emoji,
+ mobile_coin_address,
avatar,
remove_avatar,
} => {
family_name,
about,
about_emoji,
+ mobile_coin_address,
avatar,
remove_avatar,
)