語言

SlackClientWrapper.GetBotUserIdentity(Activity) 方法

定義

取得與該團隊關聯的機器人使用者 ID。 SlackMessageTypeMiddleware 內部會用此工具來識別direct_mention並提及事件。 在單隊模式中,這會在啟動時從 Slack API 中擷取資訊。 在多團隊模式下,這會使用 getBotUserByTeam 傳給建構子的方法,從開發者定義的來源擷取資訊。

public virtual string GetBotUserIdentity(Microsoft.Bot.Schema.Activity activity);
abstract member GetBotUserIdentity : Microsoft.Bot.Schema.Activity -> string
override this.GetBotUserIdentity : Microsoft.Bot.Schema.Activity -> string
Public Overridable Function GetBotUserIdentity (activity As Activity) As String

參數

activity
Activity

一項活動。

傳回

機器人使用者的身份。

適用於