From fbd2e6058bfe164757aa6520593d31db53ef8169 Mon Sep 17 00:00:00 2001 From: Nico de Haen Date: Tue, 28 Apr 2026 09:32:25 +0200 Subject: [PATCH] chore(json-rpc): deprecate send_sticker send_sticker is not needed anymore since https://github.com/chatmail/core/pull/8162/changes/4dbbd4d8e --- deltachat-jsonrpc/src/api.rs | 1 + deltachat-rpc-client/src/deltachat_rpc_client/chat.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deltachat-jsonrpc/src/api.rs b/deltachat-jsonrpc/src/api.rs index cc774d289..7ed00f195 100644 --- a/deltachat-jsonrpc/src/api.rs +++ b/deltachat-jsonrpc/src/api.rs @@ -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, diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/chat.py b/deltachat-rpc-client/src/deltachat_rpc_client/chat.py index 425cacccb..390f6fac1 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/chat.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/chat.py @@ -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)