Language

MessageHandlerExtensions.OnMessageUpdate Method

Definition

Registers a handler for message update activities.

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

Parameters

app
TeamsBotApplication

The Teams bot application.

handler
MessageUpdateHandler

The handler to register.

Returns

The updated Teams bot application.

Remarks

Breaking change: previously only the first matching handler was invoked. All matching handlers are now invoked sequentially.

Applies to