chore(json-rpc): deprecate send_sticker

send_sticker is not needed anymore since

https://github.com/chatmail/core/pull/8162/changes/4dbbd4d8e
This commit is contained in:
Nico de Haen
2026-04-28 09:32:25 +02:00
parent b806efa096
commit fbd2e6058b
2 changed files with 2 additions and 1 deletions

View File

@@ -2421,6 +2421,7 @@ impl CommandApi {
chat::resend_msgs(&ctx, &message_ids).await
}
/// deprecated as of 2026-04; use `send_msg` with `Viewtype::Sticker` instead.
async fn send_sticker(
&self,
account_id: u32,

View File

@@ -164,7 +164,7 @@ class Chat:
return Message(self.account, msg_id)
def send_sticker(self, path: str) -> Message:
"""Send an sticker and return the resulting Message instance."""
"""Deprecated as of 2026-04; use `send_message` with `Viewtype.STICKER` instead."""
msg_id = self._rpc.send_sticker(self.account.id, self.id, path)
return Message(self.account, msg_id)