Skip to content

Commit

Permalink
added binding for API endpoint:get messages read recipt
Browse files Browse the repository at this point in the history
added binding for API endpoint:get messages read recipt
  • Loading branch information
codewithnick committed Jan 19, 2024
1 parent 0c92097 commit 2992ba1
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions zulip/zulip/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1591,6 +1591,18 @@ def render_message(self, request: Optional[Dict[str, Any]] = None) -> Dict[str,
request=request,
)

def get_message_read_recipt(self, message_id: int) -> Dict[str, Any]:
"""
Example usage:
>>> client.get_message_read_recipt(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.
Expand Down

0 comments on commit 2992ba1

Please sign in to comment.