Dela via


SlackClientWrapper.PostMessageAsync Metod

Definition

Skickar ett meddelande till 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)

Parametrar

message
NewSlackMessage

Meddelandet som ska publiceras.

cancellationToken
CancellationToken

En annulleringstoken för aktiviteten.

Returer

SlackResponse till bokföringsåtgärden.

Gäller för