Stats

246 Contributors: 5
2016-07-25
Licensed under: CC-BY-SA

Not affiliated with Stack Overflow
Rip Tutorial: info@zzzprojects.com

Download eBook

Send messages in Python

Download twilio eBook

Syntax

  • class twilio.rest.resources.Messages(*args, **kwargs)

Parameters

ParameterDetails
to (str)The destination phone number.
from_ (str)The phone number sending this message (must be a verified Twilio number)
body (str)The message you want to send, limited to 160 characters.
status_callbackA URL that Twilio will POST to when your message is processed.
application_sid (str)The 34 character sid of the application Twilio should use to handle this phone call.

Remarks

Twilio will send SMS messages for long codes (in the US, a regular ten digit number) at a rate of one message per second. For additional throughput, you can use pools of numbers with Copilot or apply for a shortcode, which can send 30 messages or more per second.

Related Examples