SlackClientWrapper 类

定义

注意

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
继承
SlackClientWrapper
属性

构造函数

SlackClientWrapper(SlackClientWrapperOptions)
已过时.

初始化 SlackClientWrapper 类的新实例。 通过提供访问令牌创建 Slack 客户端。

属性

Identity
已过时.

获取用户标识。

Options
已过时.

获取 SlackClientWrapperOptions

方法

DeleteMessageAsync(String, DateTime, CancellationToken)
已过时.

包装 Slack API 的 DeleteMessageAsync 方法。

GetBotUserIdentity(Activity)
已过时.

获取与发起传入活动的团队关联的机器人用户 ID。 SlackMessageTypeMiddleware 在内部使用它来识别direct_mention和提及事件。 在单团队模式下,这会在启动时从 Slack API 拉取信息。 在多团队模式下,这将使用 getBotUserByTeam 传递给构造函数的方法从开发人员定义的源中拉取信息。

LoginWithSlackAsync(CancellationToken)
已过时.

使用给定凭据管理对 Slack 的登录。

PostMessageAsync(NewSlackMessage, CancellationToken)
已过时.

向 Slack 发布消息。

TestAuthAsync(CancellationToken)
已过时.

包装 Slack API 的 TestAuthAsync 方法。

UpdateAsync(String, String, String, String, String, Boolean, Attachment[], Boolean, CancellationToken)
已过时.

包装 Slack API 的 UpdateAsync 方法。

VerifySignature(HttpRequest, String)
已过时.

根据从请求标头获取的机密验证本地机密。

适用于