SlackClientWrapper.GetBotUserIdentity(Activity) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得與該團隊關聯的機器人使用者 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
一項活動。
傳回
機器人使用者的身份。