api(rust, jsonrpc): add get_message_read_receipt_count method (#7732)

closes #7728
This commit is contained in:
Simon Laux
2026-01-19 11:37:10 +00:00
committed by GitHub
parent 29c57ad065
commit b2f31c8148
4 changed files with 35 additions and 2 deletions

View File

@@ -44,6 +44,14 @@ class Message:
read_receipts = self._rpc.get_message_read_receipts(self.account.id, self.id)
return [AttrDict(read_receipt) for read_receipt in read_receipts]
def get_read_receipt_count(self) -> int:
"""
Returns count of read receipts on message.
This view count is meant as a feedback measure for the channel owner only.
"""
return self._rpc.get_message_read_receipt_count(self.account.id, self.id)
def get_reactions(self) -> Optional[AttrDict]:
"""Get message reactions."""
reactions = self._rpc.get_message_reactions(self.account.id, self.id)