语言

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)
已过时.

验证本地秘密与请求头获取的秘密对照。

适用于