api: Implement GET /messages/<message_id>.

This commit is contained in:
Yago González 2018-06-23 17:59:28 +02:00 committed by Eeshan Garg
parent e2f379675b
commit 38f3e1a9f5
2 changed files with 31 additions and 0 deletions

View file

@ -697,6 +697,16 @@ class Client(object):
request=message_filters
)
def get_raw_message(self, message_id):
# type: (int) -> Dict[str, str]
'''
See examples/get-raw-message for example usage
'''
return self.call_endpoint(
url='messages/{}'.format(message_id),
method='GET'
)
def send_message(self, message_data):
# type: (Dict[str, Any]) -> Dict[str, Any]
'''