IBotToUser.PostAsync(IMessageActivity, CancellationToken) 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.
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.