Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds media_url attribute to message resource. #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mishafw
Copy link

@mishafw mishafw commented Apr 28, 2024

Adds the media_url attribute to the message resource as specified in https://www.twilio.com/docs/messaging/api/message-resource

The URL of media to include in the Message content. jpeg, jpg, gif, and png file types are fully supported by Twilio and content is formatted for delivery on destination devices. The media size limit is 5 MB for supported file types (jpeg, jpg, png, gif) and 500 KB for [other types](https://www.twilio.com/docs/messaging/guides/accepted-mime-types)
 of accepted media. To send more than one image in the message, provide multiple media_url parameters in the POST request. You can include up to ten media_url parameters per message. [International](https://support.twilio.com/hc/en-us/articles/223179808-Sending-and-receiving-MMS-messages)
 and [carrier](https://support.twilio.com/hc/en-us/articles/223133707-Is-MMS-supported-for-all-carriers-in-US-and-Canada-)
 limits apply.

I tested sending a twilio message with a media_url and was able to verify that this indeed works.

@crertel-getthru
Copy link

+1 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants