SlackClientWrapper.PostMessageAsync 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.
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.