NAME
Twilio::TwiML::Messaging::Message - The Message element of TwiML
SYNOPSIS
my $element = Twilio::TwiML::Messaging::Message->new($body, \%attributes);
DESCRIPTION
See Twilio::TwiML::TwiML for the methods every element has.
METHODS
new
my $element = Twilio::TwiML::Messaging::Message->new($body, \%attributes);
attribute_table
Used by Twilio::TwiML::TwiML.
body
my $child = $element->body($message);
Add Body child. Returns a Twilio::TwiML::Messaging::Body.
media
my $child = $element->media($url);
Add Media child. Returns a Twilio::TwiML::Messaging::Media.
ATTRIBUTES
Each name works in \%attributes, and as a set_ method that returns the element.
action-
A URL specifying where Twilio should send status callbacks for the created outbound message.
from-
Phone Number to send Message from
method-
Action URL Method
status_callback-
Status callback URL. Deprecated in favor of action.
to-
Phone Number to send Message to
set_action
set_from
set_method
set_status_callback
set_to
Set the attribute of the same name.
LICENSE
Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.