Set/Unset Reactions

Reacting to messages provides a convenient means of expressing reactions through emojis, offering various options for integrations, inquiries, and other creative purposes.

NameRequires AuthPermissionSetting

setReaction

Yes

Payload Parameters

ArgumentExampleRequiredDescription

emoji

:nerd:

Required

The emoji.

message_id

8gMsLe9ApZjo2D2iB

Required

The id of the message you want to react to.

setReaction

true

Required

It can only be true or false. true: - Set the emoji reaction to the message. false: Remove the emoji reaction from the message.

Example Call

{
    "msg": "method",
    "method": "setReaction",
    "id": "22",
    "params": [
        ":nerd:",
        "8gMsLe9ApZjo2D2iB",
        true
    ]
}

Example Response

{
    "msg": "result",
    "id": "22"
}

Last updated

Rocket.Chat versions receive support for six months after release.