Language

TeamsBotFrameworkHttpAdapter.ContinueConversationAsync Method

Definition

Continues an existing bot conversation by invoking the specified callback with the provided conversation reference.

public override System.Threading.Tasks.Task ContinueConversationAsync(string botId, Microsoft.Bot.Schema.ConversationReference reference, Microsoft.Bot.Builder.BotCallbackHandler callback, System.Threading.CancellationToken cancellationToken);
override this.ContinueConversationAsync : string * Microsoft.Bot.Schema.ConversationReference * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overrides Function ContinueConversationAsync (botId As String, reference As ConversationReference, callback As BotCallbackHandler, cancellationToken As CancellationToken) As Task

Parameters

botId
String

The unique identifier of the bot participating in the conversation.

reference
ConversationReference

A reference to the conversation to continue. Must not be null.

callback
BotCallbackHandler

A delegate that handles the bot logic for the continued conversation. The callback receives a turn context and cancellation token.

cancellationToken
CancellationToken

A cancellation token that can be used to cancel the operation.

Returns

A task that represents the asynchronous operation.

Remarks

Use this method to resume a conversation at a specific point, such as in response to an event or proactive message. The callback is executed within the context of the continued conversation.

Applies to