Jaa


Extensions.PostAsync(IBotToUser, String, String, CancellationToken) Method

Definition

Post a message to be sent to the user, using previous messages to establish a conversation context.

public static System.Threading.Tasks.Task PostAsync (this Microsoft.Bot.Builder.Dialogs.Internals.IBotToUser botToUser, string text, string locale = default, System.Threading.CancellationToken cancellationToken = default);
static member PostAsync : Microsoft.Bot.Builder.Dialogs.Internals.IBotToUser * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function PostAsync (botToUser As IBotToUser, text As String, Optional locale As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

botToUser
IBotToUser

Communication channel to use.

text
String

The message text.

locale
String

The locale of the text.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the post operation.

Remarks

If the locale parameter is not set, locale of the incoming message will be used for reply.

Applies to