MessageExtensions<TState>.OnAnonymousQueryLink Method

Definition

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

public Microsoft.Teams.AI.Application<TState> OnAnonymousQueryLink(Microsoft.Teams.AI.QueryLinkHandlerAsync<TState> handler);
member this.OnAnonymousQueryLink : Microsoft.Teams.AI.QueryLinkHandlerAsync<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State : (new : unit -> 'State))> -> Microsoft.Teams.AI.Application<'State (requires 'State :> Microsoft.Teams.AI.State.TurnState and 'State : (new : unit -> 'State))>
Public Function OnAnonymousQueryLink (handler As QueryLinkHandlerAsync(Of TState)) As Application(Of TState)

Parameters

handler
QueryLinkHandlerAsync<TState>

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