Reaction API object
Create a Reaction object for the API
The message's id (wamid) to react to
The emoji to react with, defaults to empty string to remove a reaction
import { Reaction } from "whatsapp-api-js/messages";const reaction_message = new Reaction("message_id", "👍"); Copy
import { Reaction } from "whatsapp-api-js/messages";const reaction_message = new Reaction("message_id", "👍");
If a non-emoji or more than one emoji is provided
Create a remove Reaction object for the API
import { Reaction } from "whatsapp-api-js/messages";const reaction_remove_message = new Reaction("message_id"); Copy
import { Reaction } from "whatsapp-api-js/messages";const reaction_remove_message = new Reaction("message_id");
Readonly
The reaction emoji
The message's id to react to
Reaction API object