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
- 屬性
建構函式
| 名稱 | Description |
|---|---|
| SlackClientWrapper(SlackClientWrapperOptions) |
已淘汰.
初始化 SlackClientWrapper 類別的新執行個體。 透過提供存取權杖建立 Slack 用戶端。 |
屬性
| 名稱 | Description |
|---|---|
| Identity |
已淘汰.
取得使用者身份。 |
| Options |
已淘汰.
|
方法
| 名稱 | Description |
|---|---|
| DeleteMessageAsync(String, DateTime, CancellationToken) |
已淘汰.
會包裝 Slack API 的 DeleteMessageAsync 方法。 |
| GetBotUserIdentity(Activity) |
已淘汰.
取得與該團隊關聯的機器人使用者 ID。 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) |
已淘汰.
驗證本地祕密與請求標頭取得的祕密。 |