Jaa


SlackClientWrapper.GetBotUserIdentity(Activity) Method

Definition

Get the bot user id associated with the team on which an incoming activity originated. This is used internally by the SlackMessageTypeMiddleware to identify direct_mention and mention events. In single-team mode, this will pull the information from the Slack API at launch. In multi-team mode, this will use the getBotUserByTeam method passed to the constructor to pull the information from a developer-defined source.

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

Parameters

activity
Activity

An Activity.

Returns

The identity of the bot's user.

Applies to