Share via


SlackClientWrapper.PostMessageAsync Method

Definition

Posts a message to Slack.

public virtual System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse> PostMessageAsync (Microsoft.Bot.Builder.Adapters.Slack.Model.NewSlackMessage message, System.Threading.CancellationToken cancellationToken);
abstract member PostMessageAsync : Microsoft.Bot.Builder.Adapters.Slack.Model.NewSlackMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse>
override this.PostMessageAsync : Microsoft.Bot.Builder.Adapters.Slack.Model.NewSlackMessage * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.Adapters.Slack.Model.SlackResponse>
Public Overridable Function PostMessageAsync (message As NewSlackMessage, cancellationToken As CancellationToken) As Task(Of SlackResponse)

Parameters

message
NewSlackMessage

The message to be posted.

cancellationToken
CancellationToken

A cancellation token for the task.

Returns

The SlackResponse to the posting operation.

Applies to