Add a reaction
client.chats.messages.reactions.add(stringmessageID, ReactionAddParams { chatID, reactionKey, transactionID } params, RequestOptionsoptions?): ReactionAddResponse { chatID, messageID, reactionKey, 2 more }
POST/v1/chats/{chatID}/messages/{messageID}/reactions
Add a reaction to an existing message.
Parameters
messageID: string
Returns
Add a reaction
import BeeperDesktop from '@beeper/desktop-api';
const client = new BeeperDesktop();
const response = await client.chats.messages.reactions.add('messageID', {
chatID: '!NCdzlIaMjZUmvmvyHU:beeper.com',
reactionKey: 'x',
});
console.log(response.chatID);{
"chatID": "!signal_adamvy:local-signal.localhost",
"messageID": "1343993",
"reactionKey": "❤️",
"success": true,
"transactionID": "txn_123"
}Returns Examples
{
"chatID": "!signal_adamvy:local-signal.localhost",
"messageID": "1343993",
"reactionKey": "❤️",
"success": true,
"transactionID": "txn_123"
}