uri: String,
) -> Result<Value, ErrorObjectOwned>;
+ #[method(name = "addStickerPack", param_kind = map)]
+ async fn add_sticker_pack(
+ &self,
+ account: Option<String>,
+ uri: String,
+ ) -> Result<Value, ErrorObjectOwned>;
+
#[method(name = "block", param_kind = map)]
fn block(
&self,
#[allow(non_snake_case)] ignoreRegistered: Option<bool>,
) -> Result<Value, ErrorObjectOwned>;
+ #[method(name = "getAttachment", param_kind = map)]
+ fn get_attachment(
+ &self,
+ account: Option<String>,
+ id: String,
+ recipient: Option<String>,
+ group_id: Option<String>,
+ ) -> Result<Value, ErrorObjectOwned>;
+
#[method(name = "getUserStatus", param_kind = map)]
fn get_user_status(
&self,
#[method(name = "joinGroup", param_kind = map)]
fn join_group(&self, account: Option<String>, uri: String) -> Result<Value, ErrorObjectOwned>;
+ #[allow(non_snake_case)]
+ #[method(name = "finishChangeNumber", param_kind = map)]
+ fn finish_change_number(
+ &self,
+ account: Option<String>,
+ number: String,
+ verificationCode: String,
+ pin: Option<String>,
+ ) -> Result<Value, ErrorObjectOwned>;
+
#[method(name = "finishLink", param_kind = map)]
fn finish_link(
&self,
account: Option<String>,
recipient: String,
forget: bool,
+ hide: bool,
) -> Result<Value, ErrorObjectOwned>;
#[method(name = "removeDevice", param_kind = map)]
#[allow(non_snake_case)] noteToSelf: bool,
) -> Result<Value, ErrorObjectOwned>;
+ #[allow(non_snake_case)]
#[method(name = "send", param_kind = map)]
fn send(
&self,
account: Option<String>,
recipients: Vec<String>,
- #[allow(non_snake_case)] groupIds: Vec<String>,
- #[allow(non_snake_case)] noteToSelf: bool,
- #[allow(non_snake_case)] endSession: bool,
+ groupIds: Vec<String>,
+ noteToSelf: bool,
+ endSession: bool,
message: String,
attachments: Vec<String>,
mentions: Vec<String>,
- #[allow(non_snake_case)] quoteTimestamp: Option<u64>,
- #[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>,
+ textStyle: Vec<String>,
+ quoteTimestamp: Option<u64>,
+ quoteAuthor: Option<String>,
+ quoteMessage: Option<String>,
+ quoteMention: Vec<String>,
+ quoteTextStyle: Vec<String>,
+ quoteAttachment: Vec<String>,
+ preview_url: Option<String>,
+ preview_title: Option<String>,
+ preview_description: Option<String>,
+ preview_image: Option<String>,
sticker: Option<String>,
- #[allow(non_snake_case)] storyTimestamp: Option<u64>,
- #[allow(non_snake_case)] storyAuthor: Option<String>,
+ storyTimestamp: Option<u64>,
+ storyAuthor: Option<String>,
+ editTimestamp: Option<u64>,
) -> Result<Value, ErrorObjectOwned>;
#[method(name = "sendContacts", param_kind = map)]
captcha: String,
) -> Result<Value, ErrorObjectOwned>;
+ #[method(name = "startChangeNumber", param_kind = map)]
+ fn start_change_number(
+ &self,
+ account: Option<String>,
+ number: String,
+ voice: bool,
+ captcha: Option<String>,
+ ) -> Result<Value, ErrorObjectOwned>;
+
#[method(name = "startLink", param_kind = map)]
fn start_link(&self, account: Option<String>) -> Result<JsonLink, ErrorObjectOwned>;
#[allow(non_snake_case)] deleteAccount: bool,
) -> Result<Value, ErrorObjectOwned>;
+ #[allow(non_snake_case)]
#[method(name = "updateAccount", param_kind = map)]
fn update_account(
&self,
account: Option<String>,
- #[allow(non_snake_case)] deviceName: Option<String>,
+ deviceName: Option<String>,
+ unrestrictedUnidentifiedSender: Option<bool>,
) -> Result<Value, ErrorObjectOwned>;
#[method(name = "updateConfiguration", param_kind = map)]
fn update_configuration(
&self,
account: Option<String>,
- #[allow(non_snake_case)] readReceiptes: Option<bool>,
+ #[allow(non_snake_case)] readReceipts: Option<bool>,
#[allow(non_snake_case)] unidentifiedDeliveryIndicators: Option<bool>,
#[allow(non_snake_case)] typingIndicators: Option<bool>,
#[allow(non_snake_case)] linkPreviews: Option<bool>,