Share via


IBotContext Interface

Definition

The context for the bot.

public interface IBotContext : Microsoft.Bot.Builder.Dialogs.Internals.IBotData, Microsoft.Bot.Builder.Dialogs.Internals.IBotToUser
type IBotContext = interface
    interface IBotData
    interface IBotToUser
Public Interface IBotContext
Implements IBotData, IBotToUser
Derived
Implements

Properties

Activity

The activity posted to bot.

CancellationToken
ConversationData

Private bot data associated with a conversation.

(Inherited from IBotData)
PrivateConversationData

Private bot data associated with a user in a conversation.

(Inherited from IBotData)
UserData

Private bot data associated with a user (across all channels and conversations).

(Inherited from IBotData)

Methods

FlushAsync(CancellationToken)

Flushes the bot data to IBotDataStore<T>

(Inherited from IBotData)
LoadAsync(CancellationToken)

Loads the bot data from IBotDataStore<T>

(Inherited from IBotData)
MakeMessage()

Make a message.

(Inherited from IBotToUser)
PostAsync(IMessageActivity, CancellationToken)

Post a message to be sent to the user.

(Inherited from IBotToUser)

Extension Methods

PostAsync(IBotToUser, String, String, CancellationToken)

Post a message to be sent to the user, using previous messages to establish a conversation context.

SayAsync(IBotToUser, String, String, MessageOptions, String, CancellationToken)

Post a message and optional SSML to be sent to the user, using previous messages to establish a conversation context.

Applies to