Share via


SlackClientWrapper Class

Definition

Caution

The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.

[System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")]
public class SlackClientWrapper
[<System.Obsolete("The Bot Framework Adapters will be deprecated in the next version of the Bot Framework SDK and moved to https://github.com/BotBuilderCommunity/botbuilder-community-dotnet. Please refer to their new location for all future work.")>]
type SlackClientWrapper = class
Public Class SlackClientWrapper
Inheritance
SlackClientWrapper
Attributes

Constructors

SlackClientWrapper(SlackClientWrapperOptions)

Initializes a new instance of the SlackClientWrapper class. Creates a Slack client by supplying the access token.

Properties

Identity

Gets the user identity.

Options

Gets the SlackClientWrapperOptions.

Methods

DeleteMessageAsync(String, DateTime, CancellationToken)

Wraps Slack API's DeleteMessageAsync method.

GetBotUserIdentity(Activity)

Get the bot user id associated with the team on which an incoming activity originated. This is used internally by the SlackMessageTypeMiddleware to identify direct_mention and mention events. In single-team mode, this will pull the information from the Slack API at launch. In multi-team mode, this will use the getBotUserByTeam method passed to the constructor to pull the information from a developer-defined source.

LoginWithSlackAsync(CancellationToken)

Manages the login to Slack with the given credentials.

PostMessageAsync(NewSlackMessage, CancellationToken)

Posts a message to Slack.

TestAuthAsync(CancellationToken)

Wraps Slack API's TestAuthAsync method.

UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken)

Wraps Slack API's UpdateAsync method.

VerifySignature(HttpRequest, String)

Validates the local secret against the one obtained from the request header.

Applies to