Jaa


ConversationsExtensions.SendConversationHistoryAsync Method

Definition

Overloads

SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)
SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)

SendConversationHistory.

SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)

public static System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse> SendConversationHistoryAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, Microsoft.Bot.Connector.Transcript history, System.Threading.CancellationToken cancellationToken = default);
static member SendConversationHistoryAsync : Microsoft.Bot.Connector.IConversations * string * Microsoft.Bot.Connector.Transcript * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Connector.ResourceResponse>
<Extension()>
Public Function SendConversationHistoryAsync (operations As IConversations, conversationId As String, history As Transcript, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parameters

operations
IConversations
conversationId
String
history
Transcript
cancellationToken
CancellationToken

Returns

Applies to

SendConversationHistoryAsync(IConversations, String, Transcript, CancellationToken)

SendConversationHistory.

public static System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse> SendConversationHistoryAsync (this Microsoft.Bot.Connector.IConversations operations, string conversationId, Microsoft.Bot.Schema.Transcript transcript, System.Threading.CancellationToken cancellationToken = default);
static member SendConversationHistoryAsync : Microsoft.Bot.Connector.IConversations * string * Microsoft.Bot.Schema.Transcript * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Schema.ResourceResponse>
<Extension()>
Public Function SendConversationHistoryAsync (operations As IConversations, conversationId As String, transcript As Transcript, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ResourceResponse)

Parameters

operations
IConversations

The operations group for this extension method.

conversationId
String

Conversation ID.

transcript
Transcript

Transcript of activities.

cancellationToken
CancellationToken

The cancellation token.

Returns

The ResourceResponse.

Remarks

This method allows you to upload the historic activities to the conversation.

Sender must ensure that the historic activities have unique ids and appropriate timestamps. The ids are used by the client to deal with duplicate activities and the timestamps are used by the client to render the activities in the right order.

Applies to