@wildix/xbees-conversations-client > TriggerMessageActionCommand
TriggerMessageActionCommand class
Sends a trigger for specific action for specified message. This operation requires the message to be accessible to the user.
Signature:
export declare class TriggerMessageActionCommand extends TriggerMessageActionCommand_base
Extends: TriggerMessageActionCommand_base
Example
Use a bare-bones client and the command you need to make an API call.
import { ConversationsClient, TriggerMessageActionCommand } from "@wildix/xbees-conversations-client"; // ES Modules import
// const { ConversationsClient, TriggerMessageActionCommand } = require("@wildix/xbees-conversations-client"); // CommonJS import
const client = new ConversationsClient(config);
const input = { // TriggerMessageActionInput
channelId: "STRING_VALUE", // required
messageId: "STRING_VALUE", // required
actionId: "STRING_VALUE", // required
userId: "STRING_VALUE",
};
const command = new TriggerMessageActionCommand(input);
const response = await client.send(command);
// { // TriggerMessageActionOutput
// triggerId: "STRING_VALUE", // required
// };