Language

MessageSubmitActionExtensions.OnMessageSubmitFeedback Method

Definition

Registers a handler for message/submitAction invokes where actionName == "feedback". The handler receives the inner actionValue typed as MessageSubmitFeedbackValue. Register this before any general OnMessageSubmitAction(TeamsBotApplication, MessageSubmitActionHandler) so the feedback-specific route wins on first-match dispatch.

public static Microsoft.Teams.Apps.TeamsBotApplication OnMessageSubmitFeedback(this Microsoft.Teams.Apps.TeamsBotApplication app, Microsoft.Teams.Apps.MessageSubmitFeedbackHandler handler);
static member OnMessageSubmitFeedback : Microsoft.Teams.Apps.TeamsBotApplication * Microsoft.Teams.Apps.MessageSubmitFeedbackHandler -> Microsoft.Teams.Apps.TeamsBotApplication
<Extension()>
Public Function OnMessageSubmitFeedback (app As TeamsBotApplication, handler As MessageSubmitFeedbackHandler) As TeamsBotApplication

Parameters

app
TeamsBotApplication

The Teams bot application.

handler
MessageSubmitFeedbackHandler

The handler to register.

Returns

The updated Teams bot application.

Applies to