From a17e8954a8991d6f1b07a5d280df0dfce30137b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yago=20Gonz=C3=A1lez?= Date: Thu, 9 Aug 2018 20:15:50 +0200 Subject: [PATCH] api: Implement POST /typing. --- zulip/zulip/__init__.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 3042572..cb708b8 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -1182,6 +1182,22 @@ class Client(object): request=request, ) + def set_typing_status(self, request): + # type: (Dict[str, Any]) -> Dict[str, Any] + ''' + Example usage: + >>> client.set_typing_status({ + 'op': 'start', + 'to': ['iago@zulip.com', 'polonius@zulip.com'], + }) + {'result': 'success', 'msg': ''} + ''' + return self.call_endpoint( + url='typing', + method='POST', + request=request + ) + class ZulipStream(object): """ A Zulip stream-like object