Twilio\Rest\Chat\V2\Service\Channel\CreateMessageOptions
Synopsis
class CreateMessageOptions
extends Options
{
- // Inherited members from Options
- protected array $options;
- // methods
- public void __construct()
- public CreateMessageOptions setFrom()
- public CreateMessageOptions setAttributes()
- public CreateMessageOptions setDateCreated()
- public CreateMessageOptions setDateUpdated()
- public CreateMessageOptions setLastUpdatedBy()
- public CreateMessageOptions setBody()
- public CreateMessageOptions setMediaSid()
- public CreateMessageOptions setXTwilioWebhookEnabled()
- public string __toString()
- // Inherited methods from Options
- public void getIterator()
Hierarchy
Extends
Members
protected
- $options
Methods
public
- __construct()
- __toString() — Provide a friendly representation
- setAttributes() — A valid JSON string that contains application-specific data.
- setBody() — The message to send to the channel. Can be an empty string or `null`, which sets the value as an empty string. You can send structured data in the body by serializing it as a string.
- setDateCreated() — The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was created. The default value is the current time set by the Chat service. This parameter should only be used when a Chat's history is being recreated from a backup/separate source.
- setDateUpdated() — The date, specified in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format, to assign to the resource as the date it was last updated.
- setFrom() — The [Identity](https://www.twilio.com/docs/chat/identity) of the new message's author. The default value is `system`.
- setLastUpdatedBy() — The [Identity](https://www.twilio.com/docs/chat/identity) of the User who last updated the Message, if applicable.
- setMediaSid() — The SID of the [Media](https://www.twilio.com/docs/chat/rest/media) to attach to the new Message.
- setXTwilioWebhookEnabled() — The X-Twilio-Webhook-Enabled HTTP request header