TeamsInfo.GetTeamChannelsAsync Method

Definition

Returns a list of channels in a Team. This only works in teams scoped conversations.

public static System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.ChannelInfo>> GetTeamChannelsAsync (Microsoft.Bot.Builder.ITurnContext turnContext, string teamId = default, System.Threading.CancellationToken cancellationToken = default);
static member GetTeamChannelsAsync : Microsoft.Bot.Builder.ITurnContext * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.Bot.Schema.Teams.ChannelInfo>>
Public Shared Function GetTeamChannelsAsync (turnContext As ITurnContext, Optional teamId As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IList(Of ChannelInfo))

Parameters

turnContext
ITurnContext

Turn context.

teamId
String

ID of the Teams team.

cancellationToken
CancellationToken

cancellation token.

Returns

Team Details.

Applies to