On this page

Get channel details

Fetch details of a specific channel using the GetChannel() method.

Requires App Context

To store data about channels, you must enable App Context for your app's keyset in the Admin Portal.

Method signature

This method takes the following parameters:

Method signature

This method takes the following parameters:

1chat.GetChannel(
2 string channelId
3)

Input

* required
ParameterDescription
channelId *
Type: string
Default:
n/a
Unique channel identifier (up to 92 UTF-8 byte sequences).

Output

The method returns an awaitable Task<ChatOperationResult<Channel>> with the Channel object if it exists, otherwise the Error property on the result will be true.

Sample code

Fetch the support channel metadata.

1

Last updated on