zulip-apis: Update reaction_data type.

Update `reaction_data` type in add_reaction and
remove_reaction, from Dict[str, str] to Dict[str, Any]
This commit is contained in:
LoopThrough-i-j 2021-02-23 19:42:03 +05:30 committed by Tim Abbott
parent 9ce2ea53a5
commit 3e28506607

View file

@ -829,12 +829,12 @@ class Client:
method='GET'
)
def add_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]:
def add_reaction(self, reaction_data: Dict[str, Any]) -> Dict[str, Any]:
'''
Example usage:
>>> client.add_reaction({
'message_id': '100',
'message_id': 100,
'emoji_name': 'joy',
'emoji_code': '1f602',
'reaction_type': 'unicode_emoji'
@ -847,12 +847,12 @@ class Client:
request=reaction_data,
)
def remove_reaction(self, reaction_data: Dict[str, str]) -> Dict[str, Any]:
def remove_reaction(self, reaction_data: Dict[str, Any]) -> Dict[str, Any]:
'''
Example usage:
>>> client.remove_reaction({
'message_id': '100',
'message_id': 100,
'emoji_name': 'joy',
'emoji_code': '1f602',
'reaction_type': 'unicode_emoji'