Skip to content

Commit 3e28506

Browse files
LoopThrough-i-jtimabbott
authored andcommitted
zulip-apis: Update reaction_data type.
Update `reaction_data` type in add_reaction and remove_reaction, from Dict[str, str] to Dict[str, Any]
1 parent 9ce2ea5 commit 3e28506

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

zulip/zulip/__init__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,12 +829,12 @@ def get_message_history(self, message_id: int) -> Dict[str, Any]:
829829
method='GET'
830830
)
831831

832-
def add_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]:
832+
def add_reaction(self, reaction_data: Dict[str, Any]) -> Dict[str, Any]:
833833
'''
834834
Example usage:
835835
836836
>>> client.add_reaction({
837-
'message_id': '100',
837+
'message_id': 100,
838838
'emoji_name': 'joy',
839839
'emoji_code': '1f602',
840840
'reaction_type': 'unicode_emoji'
@@ -847,12 +847,12 @@ def add_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]:
847847
request=reaction_data,
848848
)
849849

850-
def remove_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]:
850+
def remove_reaction(self, reaction_data: Dict[str, Any]) -> Dict[str, Any]:
851851
'''
852852
Example usage:
853853
854854
>>> client.remove_reaction({
855-
'message_id': '100',
855+
'message_id': 100,
856856
'emoji_name': 'joy',
857857
'emoji_code': '1f602',
858858
'reaction_type': 'unicode_emoji'

0 commit comments

Comments
 (0)