Freigeben über


MessageExtension.OnAnonymousQueryLink(QueryLinkHandlerAsync) Method

Definition

Registers a handler that implements the logic to handle anonymous link unfurling.

public Microsoft.Agents.Builder.App.AgentApplication OnAnonymousQueryLink(Microsoft.Agents.Extensions.Teams.App.MessageExtensions.QueryLinkHandlerAsync handler);
member this.OnAnonymousQueryLink : Microsoft.Agents.Extensions.Teams.App.MessageExtensions.QueryLinkHandlerAsync -> Microsoft.Agents.Builder.App.AgentApplication
Public Function OnAnonymousQueryLink (handler As QueryLinkHandlerAsync) As AgentApplication

Parameters

handler
QueryLinkHandlerAsync

Function to call when the event is triggered.

Returns

The application instance for chaining purposes.

Remarks

The `composeExtension/anonymousQueryLink` INVOKE activity does not contain any sort of command ID, so only a single select item handler can be registered. For more information visit https://learn.microsoft.com/microsoftteams/platform/messaging-extensions/how-to/link-unfurling?#enable-zero-install-link-unfurling

Applies to