Skip to content

Commit 52fcb3a

Browse files
committed
added binding for API endpoint:get messages read recipt
1 parent 0c92097 commit 52fcb3a

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

zulip/zulip/__init__.py

+12
Original file line numberDiff line numberDiff line change
@@ -1590,6 +1590,18 @@ def render_message(self, request: Optional[Dict[str, Any]] = None) -> Dict[str,
15901590
method="POST",
15911591
request=request,
15921592
)
1593+
1594+
def get_message_read_recipt(self, message_id: int) -> Dict[str, Any]:
1595+
"""
1596+
Example usage:
1597+
1598+
>>> client.get_message_read_recipt(42)
1599+
{'result': 'success', 'msg': '', 'user_ids': [42]}
1600+
"""
1601+
return self.call_endpoint(
1602+
url=f"messages/{message_id}/read_receipts",
1603+
method="GET",
1604+
)
15931605

15941606
def create_user(self, request: Optional[Dict[str, Any]] = None) -> Dict[str, Any]:
15951607
"""

0 commit comments

Comments
 (0)