Language

BotRequestContext.FromBotAppId(String) Method

Definition

Builds context carrying only the supplied bot app id, used as-is (no channel-prefix stripping). Use for proactive flows where the bot app id is known directly rather than derived from an activity.

public static Microsoft.Teams.Core.Http.BotRequestContext? FromBotAppId(string? botAppId);
static member FromBotAppId : string -> Microsoft.Teams.Core.Http.BotRequestContext
Public Shared Function FromBotAppId (botAppId As String) As BotRequestContext

Parameters

botAppId
String

The bot application (client) id, or null.

Returns

The context, or null when botAppId is null or empty.

Applies to