This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.
Triggered when a postback button is clicked.
function onMessageButtonInteracted(handler: function): void;
handler(event: MessageButtonInteractedEnvelope): void | Promise<void>
import { messages } from "@wix/inbox";
messages.onMessageButtonInteracted((event) => {
// handle your event here
});