Share via


TeamsBotInstallation Class

Definition

An INotificationTarget that represents a bot installation. Teams Bot could be installed into:

  • Personal chat.
  • Group chat.
  • Team (by default the "General" channel).
public class TeamsBotInstallation : Microsoft.TeamsFx.Conversation.INotificationTarget
type TeamsBotInstallation = class
    interface INotificationTarget
Public Class TeamsBotInstallation
Implements INotificationTarget
Inheritance
TeamsBotInstallation
Implements

Remarks

It's recommended to get bot installations from ConversationBot.Notification.GetInstallationsAsync.

Constructors

TeamsBotInstallation(String, BotAdapter, ConversationReference)

Constructor.

Properties

Adapter

The bot adapter.

BotAppId

The application ID of the bot.

ConversationReference

The ConversationReference of the bot installation.

Type

The notification target type.

  • Channel means bot is installed into a team and notification will be sent to its "General" channel.
  • Group means bot is installed into a group chat.
  • Person means bot is installed into a personal scope and notification will be sent to personal chat.

Methods

GetChannelsAsync(CancellationToken)

Get channels from this bot installation.

GetMembersAsync(CancellationToken)
Obsolete.

Get members from this bot installation.

GetPagedMembersAsync(Nullable<Int32>, String, CancellationToken)

Get a pagined list of members from this bot installation.

GetTeamDetailsAsync(CancellationToken)

Get team details from this bot installation

SendAdaptiveCard(Object, CancellationToken)

Send an adaptive card message.

SendMessage(String, CancellationToken)

Send a plain text message.

Applies to