Set/Unset Reactions (Realtime)

Prev Next

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

Method

Requires Auth

setReaction

Yes

Payload parameters

Argument

Example

Required

Description

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"
}