NAME

Twilio::Rest::Chat::V3::Channel - The Channel resource

SYNOPSIS

my $client = Twilio::Rest::Client->new($account_sid, $auth_token);

$client->chat->v3->channels($service_sid, $sid)->update(\%options);

DESCRIPTION

A Channel resource represents a chat/conversation channel with an ordered list of messages and a participant roster.

This file holds ChannelList, ChannelContext and ChannelInstance. Methods that make a request throw Twilio::Exceptions::RestException on an error response.

ChannelList

Returned by $client->chat->v3->channels($service_sid). See also Twilio::ListResource.

get_context

my $context = $client->chat->v3->channels($service_sid)->get_context($sid);

Returns a ChannelContext, and makes no request.

ChannelContext

Returned by $client->chat->v3->channels($service_sid, $sid). It makes no request until one of these methods is called.

update

my $channel = $client->chat->v3->channels($service_sid, $sid)->update(\%options);

Update a specific Channel. Returns a ChannelInstance.

The options are:

messaging_service_sid

The unique ID of the Messaging Service this channel belongs to.

type

One of public or private.

x_twilio_webhook_enabled

The X-Twilio-Webhook-Enabled HTTP request header One of true or false.

ChannelInstance

See also Twilio::InstanceResource.

It has update, which work as they do on the context.

Its fields are:

account_sid

The SID of the Account that created the Channel resource.

attributes

The JSON string that stores application-specific data. If attributes have not been set, {} is returned.

created_by

The identity of the User that created the channel. If the Channel was created by using the API, the value is system.

date_created

The date and time in GMT when the resource was created specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

date_updated

The date and time in GMT when the resource was last updated specified in ISO 8601 format. A Time::Piece object in UTC. See "date_time" in Twilio::Deserialize.

friendly_name

The string that you assigned to describe the resource.

members_count

The number of Members in the Channel.

messages_count

The number of Messages that have been passed in the Channel.

messaging_service_sid

The unique ID of the Messaging Service this channel belongs to.

service_sid

The SID of the Service the Channel resource is associated with.

sid

The unique string that we created to identify the Channel resource.

type

One of public or private.

unique_name

An application-defined string that uniquely identifies the resource. It can be used to address the resource in place of the resource's sid in the URL.

url

The absolute URL of the Channel resource.

CONSTRUCTORS

new

Objects here come from the methods above, so there is no need to call new directly.

LICENSE

Copyright (c) 2026 Francisco Zarabozo. Released under the MIT License.