Context<TActivity>.Reply 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 |
|---|---|
| Reply(String, CancellationToken) |
Obsolete.
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. |
| Reply(MessageActivity, CancellationToken) |
Obsolete.
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). |
Reply(String, CancellationToken)
Caution
Use ReplyAsync instead.
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.
[System.Obsolete("Use ReplyAsync instead.")]
public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> Reply(string text, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use ReplyAsync instead.")>]
member this.Reply : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function Reply (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.
- Attributes
Applies to
Reply(MessageActivity, CancellationToken)
Caution
Use ReplyAsync with a TeamsActivityInput built via new MessageActivityInput() instead.
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).
[System.Obsolete("Use ReplyAsync with a TeamsActivityInput built via new MessageActivityInput() instead.")]
public System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse?> Reply(Microsoft.Teams.Apps.MessageActivity activity, System.Threading.CancellationToken cancellationToken = default);
[<System.Obsolete("Use ReplyAsync with a TeamsActivityInput built via new MessageActivityInput() instead.")>]
member this.Reply : Microsoft.Teams.Apps.MessageActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Teams.Core.SendActivityResponse>
Public Function Reply (activity As MessageActivity, Optional cancellationToken As CancellationToken = Nothing) As Task(Of SendActivityResponse)
Parameters
- activity
- MessageActivity
The activity to send.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
The response from the send operation.
- Attributes