From c94f208f9d838a46b5810f34be8d8c4c82621afe Mon Sep 17 00:00:00 2001 From: nikhil singh Date: Fri, 19 Jan 2024 19:43:11 +0530 Subject: [PATCH] api: Implement GET /messages/{message_id}/read_receipts endpoint --- zulip/zulip/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index e868e6bf2..36d71f2fa 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1591,6 +1591,18 @@ def render_message(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, request=request, ) + def get_message_read_receipts(self, message_id: int) -> Dict[str, Any]: + """ + Example usage: + + >>> client.get_message_read_receipts(42) + {'result': 'success', 'msg': '', 'user_ids': [42]} + """ + return self.call_endpoint( + url=f"messages/{message_id}/read_receipts", + method="GET", + ) + def create_user(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]: """ See examples/create-user for example usage.