Does Python twilio.rest Client support media messages?

I've had some success creating and receiving media messages with JavaScript, outlined here https://www.twilio.com/docs/chat/media-support

I'm wondering if there is support for this in the python client? As far as I can tell, it only allows a string for the body e.g.

channel.messages.create(from_='someone', body='The message body')

whereas the JavaScript allows media

channel.sendMessage({contentType: 'application/json', media: {'number': 42},});

Tagged:

Answers

If this is an emergency, please contact Twilio Support. This is not an official Support channel. https://support.twilio.com/
Have an urgent question?
Please contact Twilio Support. This is not an official Support channel.
Contact Support