From 47f9b103ab4d0741de5ed3e156897a37623af748 Mon Sep 17 00:00:00 2001 From: "neiljp (Neil Pilgrim)" Date: Fri, 15 Feb 2019 20:23:46 -0800 Subject: [PATCH] api: Fix add_reaction method to pass reaction_data. Also correct the example usage text. --- zulip/zulip/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zulip/zulip/__init__.py b/zulip/zulip/__init__.py index 6380a62..8fa1dc3 100644 --- a/zulip/zulip/__init__.py +++ b/zulip/zulip/__init__.py @@ -824,7 +824,7 @@ class Client(object): ''' Example usage: - >>> client.add_emoji_reaction({ + >>> client.add_reaction({ 'message_id': '100', 'emoji_name': 'joy', 'emoji_code': '1f602', @@ -835,6 +835,7 @@ class Client(object): return self.call_endpoint( url='messages/{}/reactions'.format(reaction_data['message_id']), method='POST', + request=reaction_data, ) def remove_reaction(self, reaction_data):