Language

BotRequestContext.FromInboundActivity(CoreActivity) Method

Definition

Builds context for an inbound activity: the bot is the recipient, so both the bot app id and the agentic identity are derived from Recipient (the bot's own account).

public static Microsoft.Teams.Core.Http.BotRequestContext? FromInboundActivity(Microsoft.Teams.Core.Schema.CoreActivity? activity);
static member FromInboundActivity : Microsoft.Teams.Core.Schema.CoreActivity -> Microsoft.Teams.Core.Http.BotRequestContext
Public Shared Function FromInboundActivity (activity As CoreActivity) As BotRequestContext

Parameters

activity
CoreActivity

The inbound activity, or null.

Returns

The context, or null when nothing could be derived.

Applies to