Context<TActivity>.QuoteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| QuoteAsync(String, MessageActivityInput, CancellationToken) |
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text. |
| QuoteAsync(String, String, CancellationToken) |
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text. |
QuoteAsync(String, MessageActivityInput, CancellationToken)
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text.
public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> QuoteAsync(string messageId, Microsoft.Teams.Apps.MessageActivityInput activity, System.Threading.CancellationToken cancellationToken = default);
member this.QuoteAsync : string * Microsoft.Teams.Apps.MessageActivityInput * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function QuoteAsync (messageId As String, activity As MessageActivityInput, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)
Parameters
- messageId
- String
The ID of the message to quote.
- activity
- MessageActivityInput
The activity to send. For MessageActivity, a quote placeholder for messageId is prepended to its text. Other activity types are sent as-is without quoting.
- cancellationToken
- CancellationToken
Optional cancellation token.
Returns
The response from sending the activity.
Applies to
QuoteAsync(String, String, CancellationToken)
Send a message to the conversation with a quoted message reference prepended to the text. Teams renders the quoted message as a preview bubble above the response text.
public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> QuoteAsync(string messageId, string text, System.Threading.CancellationToken cancellationToken = default);
member this.QuoteAsync : string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function QuoteAsync (messageId As String, text As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)
Parameters
- messageId
- String
The ID of the message to quote.
- text
- String
The response text, appended to the quoted message placeholder.
- cancellationToken
- CancellationToken
Optional cancellation token.
Returns
The response from sending the activity.