Share via


IBotToUser.PostAsync(IMessageActivity, CancellationToken) Method

Definition

Post a message to be sent to the user.

public System.Threading.Tasks.Task PostAsync (Microsoft.Bot.Connector.IMessageActivity message, System.Threading.CancellationToken cancellationToken = default);
abstract member PostAsync : Microsoft.Bot.Connector.IMessageActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PostAsync (message As IMessageActivity, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

message
IMessageActivity

The message for the user.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task that represents the post operation.

Applies to