likeMessage(options);
Call this method to like/give a reaction to a message.
JavaScript
sdk.likeMessage(messageId, reaction, action);
likeMessage(messageId, reaction, action)
Parameter | Description | Type |
---|---|---|
messageId | id of the message | String |
likeReaction | LikeReaction | String |
likeAction | liked or unliked | String |
LikeReaction (Options)
"wave" | 👋 |
---|---|
"thumbs_up" | 👍 |
"clap" | 👏 |
"pray" | 🙏 |
"strong" | 💪 |
"celebrate" | 🎉 |
"heart" | 💚 |
Example
In the example below we are providing a thumbs_up
reaction to the a message with id: 63233015c3aa3508a4c8fc34
sdk.likeMessage("63233015c3aa3508a4c8fc34", "thumbs_up", "liked");
Response
This method provides no response