api: Implement POST /mark_all_as_read.

This commit is contained in:
Yago González 2018-08-11 13:41:23 +02:00 committed by Tim Abbott
parent 92ceb991a3
commit ac399d895d

View file

@ -763,6 +763,19 @@ class Client(object):
request=update_data
)
def mark_all_as_read(self):
# type: () -> Dict[str, Any]
'''
Example usage:
>>> client.mark_all_as_read()
{'result': 'success', 'msg': ''}
'''
return self.call_endpoint(
url='mark_all_as_read',
method='POST',
)
def get_message_history(self, message_id):
# type: (int) -> Dict[str, Any]
'''