MessageFetchTaskExtensions.OnMessageFetchTask 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.
Registers a handler for message fetch task invoke activities (message/fetchTask). Triggered when the user clicks a feedback button on an AI-generated message. Cannot be combined with OnInvoke(TeamsBotApplication, InvokeHandler).
public static Microsoft.Teams.Apps.TeamsBotApplication OnMessageFetchTask(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.MessageFetchTaskHandler handler);
static member OnMessageFetchTask : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.MessageFetchTaskHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnMessageFetchTask (app As TeamsBotApplication, handler As MessageFetchTaskHandler) As TeamsBotApplication
Parameters
The Teams bot application.
- handler
- MessageFetchTaskHandler
The handler to register.
Returns
The updated Teams bot application.