Share via


Application<TState>.OnMessageEdit(RouteHandler<TState>) Method

Definition

Handles message edit events.

public Microsoft.Teams.AI.Application<TState> OnMessageEdit(Microsoft.Teams.AI.RouteHandler<TState> handler);
member this.OnMessageEdit : Microsoft.Teams.AI.RouteHandler<'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 OnMessageEdit (handler As RouteHandler(Of TState)) As Application(Of TState)

Parameters

handler
RouteHandler<TState>

Function to call when the event is triggered.

Returns

The application instance for chaining purposes.

Applies to