mirror of
https://github.com/chatmail/core.git
synced 2026-05-02 04:46:29 +03:00
api(deltachat-rpc-client): return Message from Message.send_reaction()
This commit is contained in:
@@ -22,9 +22,10 @@ class Message:
|
|||||||
def _rpc(self) -> "Rpc":
|
def _rpc(self) -> "Rpc":
|
||||||
return self.account._rpc
|
return self.account._rpc
|
||||||
|
|
||||||
def send_reaction(self, *reaction: str):
|
def send_reaction(self, *reaction: str) -> "Message":
|
||||||
"""Send a reaction to this message."""
|
"""Send a reaction to this message."""
|
||||||
self._rpc.send_reaction(self.account.id, self.id, reaction)
|
msg_id = self._rpc.send_reaction(self.account.id, self.id, reaction)
|
||||||
|
return Message(self.account, msg_id)
|
||||||
|
|
||||||
def get_snapshot(self) -> AttrDict:
|
def get_snapshot(self) -> AttrDict:
|
||||||
"""Get a snapshot with the properties of this message."""
|
"""Get a snapshot with the properties of this message."""
|
||||||
|
|||||||
Reference in New Issue
Block a user