MessageExtensions<TState>.OnBotMessagePreviewEdit 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.
Overloads
| OnBotMessagePreviewEdit(MultipleRouteSelector, BotMessagePreviewEditHandlerAsync<TState>) |
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending. |
| OnBotMessagePreviewEdit(RouteSelectorAsync, BotMessagePreviewEditHandlerAsync<TState>) |
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending. |
| OnBotMessagePreviewEdit(String, BotMessagePreviewEditHandlerAsync<TState>) |
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending. |
| OnBotMessagePreviewEdit(Regex, BotMessagePreviewEditHandlerAsync<TState>) |
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending. |
OnBotMessagePreviewEdit(MultipleRouteSelector, BotMessagePreviewEditHandlerAsync<TState>)
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.
public Microsoft.Teams.AI.Application<TState> OnBotMessagePreviewEdit(Microsoft.Teams.AI.MultipleRouteSelector routeSelectors, Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<TState> handler);
member this.OnBotMessagePreviewEdit : Microsoft.Teams.AI.MultipleRouteSelector * Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<'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 OnBotMessagePreviewEdit (routeSelectors As MultipleRouteSelector, handler As BotMessagePreviewEditHandlerAsync(Of TState)) As Application(Of TState)
Parameters
- routeSelectors
- MultipleRouteSelector
Combination of String, Regex, and RouteSelectorAsync selectors.
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnBotMessagePreviewEdit(RouteSelectorAsync, BotMessagePreviewEditHandlerAsync<TState>)
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.
public Microsoft.Teams.AI.Application<TState> OnBotMessagePreviewEdit(Microsoft.Teams.AI.RouteSelectorAsync routeSelector, Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<TState> handler);
member this.OnBotMessagePreviewEdit : Microsoft.Teams.AI.RouteSelectorAsync * Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<'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 OnBotMessagePreviewEdit (routeSelector As RouteSelectorAsync, handler As BotMessagePreviewEditHandlerAsync(Of TState)) As Application(Of TState)
Parameters
- routeSelector
- RouteSelectorAsync
Function that's used to select a route. The function returning true triggers the route.
Function to call when the route is triggered.
Returns
The application instance for chaining purposes.
Applies to
OnBotMessagePreviewEdit(String, BotMessagePreviewEditHandlerAsync<TState>)
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.
public Microsoft.Teams.AI.Application<TState> OnBotMessagePreviewEdit(string commandId, Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<TState> handler);
member this.OnBotMessagePreviewEdit : string * Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<'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 OnBotMessagePreviewEdit (commandId As String, handler As BotMessagePreviewEditHandlerAsync(Of TState)) As Application(Of TState)
Parameters
- commandId
- String
ID of the command to register the handler for.
Function to call when the command is received.
Returns
The application instance for chaining purposes.
Applies to
OnBotMessagePreviewEdit(Regex, BotMessagePreviewEditHandlerAsync<TState>)
Registers a handler to process the 'edit' action of a message that's being previewed by the user prior to sending.
public Microsoft.Teams.AI.Application<TState> OnBotMessagePreviewEdit(System.Text.RegularExpressions.Regex commandIdPattern, Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<TState> handler);
member this.OnBotMessagePreviewEdit : System.Text.RegularExpressions.Regex * Microsoft.Teams.AI.BotMessagePreviewEditHandlerAsync<'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 OnBotMessagePreviewEdit (commandIdPattern As Regex, handler As BotMessagePreviewEditHandlerAsync(Of TState)) As Application(Of TState)
Parameters
- commandIdPattern
- Regex
Regular expression to match against the ID of the command to register the handler for.
Function to call when the command is received.
Returns
The application instance for chaining purposes.