api: Implement GET /attachments endpoint.

This commit is contained in:
Kartik Srivastava 2020-04-08 05:14:49 +05:30 committed by GitHub
parent f47559e68d
commit 8b0fa6bfee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -717,6 +717,19 @@ class Client(object):
files=[file]
)
def get_attachments(self):
# type: () -> Dict[str, Any]
'''
Example usage:
>>> client.get_attachments()
{'result': 'success', 'msg': '', 'attachments': [{...}, {...}]}
'''
return self.call_endpoint(
url='attachments',
method='GET'
)
def update_message(self, message_data):
# type: (Dict[str, Any]) -> Dict[str, Any]
'''