Language

Context<TActivity>.ReplyAsync Method

Definition

Overloads

Name Description
ReplyAsync(MessageActivityInput, CancellationToken)

Sends an activity to the conversation. When the inbound activity has an id, the response auto-quotes it (rendered as a quote bubble above the response in Teams). Otherwise sends without quoting. To send without quoting unconditionally, use SendAsync(MessageActivityInput, CancellationToken).

ReplyAsync(String, CancellationToken)

Sends a text message as a threaded reply to the current activity. When the inbound activity has an id, the response auto-quotes it (rendered as a quote bubble above the response in Teams); otherwise sends without quoting.

ReplyAsync(MessageActivityInput, CancellationToken)

Sends an activity to the conversation. When the inbound activity has an id, the response auto-quotes it (rendered as a quote bubble above the response in Teams). Otherwise sends without quoting. To send without quoting unconditionally, use SendAsync(MessageActivityInput, CancellationToken).

public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> ReplyAsync(Microsoft.Teams.Apps.MessageActivityInput activity, System.Threading.CancellationToken cancellationToken = default);
member this.ReplyAsync : Microsoft.Teams.Apps.MessageActivityInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function ReplyAsync (activity As MessageActivityInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)

Parameters

activity
MessageActivityInput

The activity to send.

cancellationToken
CancellationToken

A cancellation token.

Returns

The response from the send operation.

Applies to

ReplyAsync(String, CancellationToken)

Sends a text message as a threaded reply to the current activity. When the inbound activity has an id, the response auto-quotes it (rendered as a quote bubble above the response in Teams); otherwise sends without quoting.

public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> ReplyAsync(string text, System.Threading.CancellationToken cancellationToken = default);
member this.ReplyAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function ReplyAsync (text As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)

Parameters

text
String

The text to send.

cancellationToken
CancellationToken

A cancellation token.

Returns

The response from the send operation.

Applies to