TeamsInfo.GetTeamChannelsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.