SlackClientWrapper 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 |
已淘汰.
|
方法
DeleteMessageAsync(String, DateTime, CancellationToken) |
已淘汰.
包裝 Slack API 的 DeleteMessageAsync 方法。 |
GetBotUserIdentity(Activity) |
已淘汰.
取得與傳入活動產生所在小組相關聯的 Bot 使用者識別碼。 SlackMessageTypeMiddleware 會在內部使用此專案來識別direct_mention和提及事件。
在單一小組模式中,這會在啟動時從 Slack API 提取資訊。
在多小組模式中,這會使用 |
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) |
已淘汰.
根據從要求標頭取得的秘密,驗證本機密碼。 |