mirror of
https://github.com/chatmail/core.git
synced 2026-05-05 22:36:30 +03:00
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:
@@ -2421,6 +2421,7 @@ impl CommandApi {
|
|||||||
chat::resend_msgs(&ctx, &message_ids).await
|
chat::resend_msgs(&ctx, &message_ids).await
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// deprecated as of 2026-04; use `send_msg` with `Viewtype::Sticker` instead.
|
||||||
async fn send_sticker(
|
async fn send_sticker(
|
||||||
&self,
|
&self,
|
||||||
account_id: u32,
|
account_id: u32,
|
||||||
|
|||||||
@@ -164,7 +164,7 @@ class Chat:
|
|||||||
return Message(self.account, msg_id)
|
return Message(self.account, msg_id)
|
||||||
|
|
||||||
def send_sticker(self, path: str) -> Message:
|
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)
|
msg_id = self._rpc.send_sticker(self.account.id, self.id, path)
|
||||||
return Message(self.account, msg_id)
|
return Message(self.account, msg_id)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user