Language

ConversationClient.DeleteReactionAsync Method

Definition

Removes a reaction from an activity in a conversation.

public virtual System.Threading.Tasks.Task DeleteReactionAsync(string conversationId, string activityId, string reactionType, Uri serviceUrl, Microsoft.Teams.Core.Http.BotRequestContext? requestContext = default, System.Collections.Generic.Dictionary<string,string>? customHeaders = default, System.Threading.CancellationToken cancellationToken = default);
abstract member DeleteReactionAsync : string * string * string * Uri * Microsoft.Teams.Core.Http.BotRequestContext * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.DeleteReactionAsync : string * string * string * Uri * Microsoft.Teams.Core.Http.BotRequestContext * System.Collections.Generic.Dictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function DeleteReactionAsync (conversationId As String, activityId As String, reactionType As String, serviceUrl As Uri, Optional requestContext As BotRequestContext = Nothing, Optional customHeaders As Dictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

conversationId
String

The ID of the conversation. Cannot be null or whitespace.

activityId
String

The ID of the activity to remove the reaction from. Cannot be null or whitespace.

reactionType
String

The type of reaction to remove (e.g., "like", "heart", "laugh"). Cannot be null or whitespace.

serviceUrl
Uri

The service URL for the conversation. Cannot be null.

requestContext
BotRequestContext

Optional per-request properties (see BotRequestContext) to stamp onto the request's options.

customHeaders
Dictionary<String,String>

Optional custom headers to include in the request.

cancellationToken
CancellationToken

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

Returns

A task that represents the asynchronous operation.

Exceptions

Thrown if the reaction could not be removed successfully.

Applies to