BotRequestContext.FromInboundActivity(CoreActivity) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.