Share via


Channel Class

Definition

An INotificationTarget that represents a team channel.

public class Channel : Microsoft.TeamsFx.Conversation.INotificationTarget
type Channel = class
    interface INotificationTarget
Public Class Channel
Implements INotificationTarget
Inheritance
Channel
Implements

Remarks

It's recommended to get channels from GetChannelsAsync(CancellationToken).

Constructors

Channel(TeamsBotInstallation, ChannelInfo)

Constructor.

Properties

Info

Detailed channel information.

Parent

The parent TeamsBotInstallation where this channel is created from.

Type

The type of target. For channel it's always Channel.

Methods

SendAdaptiveCard(Object, CancellationToken)

Send an adaptive card message.

SendMessage(String, CancellationToken)

Send a plain text message.

Applies to