Share via


TeamsActivityHandler.OnTeamsReadReceiptAsync Method

Definition

Invoked when a read receipt for a previously sent message is received from the connector. Override this in a derived class to provide logic for when the bot receives a read receipt event.

protected virtual System.Threading.Tasks.Task OnTeamsReadReceiptAsync (Microsoft.Bot.Schema.Teams.ReadReceiptInfo readReceiptInfo, Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> turnContext, System.Threading.CancellationToken cancellationToken);
abstract member OnTeamsReadReceiptAsync : Microsoft.Bot.Schema.Teams.ReadReceiptInfo * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.OnTeamsReadReceiptAsync : Microsoft.Bot.Schema.Teams.ReadReceiptInfo * Microsoft.Bot.Builder.ITurnContext<Microsoft.Bot.Schema.IEventActivity> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Protected Overridable Function OnTeamsReadReceiptAsync (readReceiptInfo As ReadReceiptInfo, turnContext As ITurnContext(Of IEventActivity), cancellationToken As CancellationToken) As Task

Parameters

readReceiptInfo
ReadReceiptInfo

Information regarding the read receipt. i.e. Id of the message last read by the user.

turnContext
ITurnContext<IEventActivity>

A strongly-typed context object for this turn.

cancellationToken
CancellationToken

A cancellation token that can be used by other objects or threads to receive notice of cancellation.

Returns

A task that represents the work queued to execute.

Applies to