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:
parent
9ce2ea53a5
commit
3e28506607
|
@ -829,12 +829,12 @@ class Client:
|
||||||
method='GET'
|
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:
|
Example usage:
|
||||||
|
|
||||||
>>> client.add_reaction({
|
>>> client.add_reaction({
|
||||||
'message_id': '100',
|
'message_id': 100,
|
||||||
'emoji_name': 'joy',
|
'emoji_name': 'joy',
|
||||||
'emoji_code': '1f602',
|
'emoji_code': '1f602',
|
||||||
'reaction_type': 'unicode_emoji'
|
'reaction_type': 'unicode_emoji'
|
||||||
|
@ -847,12 +847,12 @@ class Client:
|
||||||
request=reaction_data,
|
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:
|
Example usage:
|
||||||
|
|
||||||
>>> client.remove_reaction({
|
>>> client.remove_reaction({
|
||||||
'message_id': '100',
|
'message_id': 100,
|
||||||
'emoji_name': 'joy',
|
'emoji_name': 'joy',
|
||||||
'emoji_code': '1f602',
|
'emoji_code': '1f602',
|
||||||
'reaction_type': 'unicode_emoji'
|
'reaction_type': 'unicode_emoji'
|
||||||
|
|
Loading…
Reference in a new issue