Skip to content

GetAllowedReactions#

Beta version

The functionality is in beta. Features may change and may also work unstably.

The method returns the basic set of reactions - the same emoji that the Instagram app offers on a long tap on a message.

The list does not limit the sending

Instagram accepts arbitrary emoji as well: the SendReaction method does not check the value against this list. The list is convenient for showing the user the familiar set.

The method uses the limits on the number of requests per second.

Request#

To get the list of reactions, you have to execute a request at:

POST
{{apiUrl}}/waInstance{{idInstance}}/getAllowedReactions/{{apiTokenInstance}}

For apiUrl, idInstance and apiTokenInstance request parameters, refer to the Before you start section.

Response#

Response parameters#

Field Type Description
reactions object Reactions by category. Instagram has no categories: only quick is filled, the other categories are always empty
quick array Quick reactions - the set that Instagram offers on a long tap on a message
reaction string The reaction emoji
unicode string The same emoji as literal \uXXXX UTF-16 code units. SendReaction accepts both forms

Response body example#

{
    "reactions": {
        "quick": [
            {
                "reaction": "❤️",
                "unicode": "\\u2764\\uFE0F"
            },
            {
                "reaction": "😂",
                "unicode": "\\uD83D\\uDE02"
            },
            {
                "reaction": "😮",
                "unicode": "\\uD83D\\uDE2E"
            },
            {
                "reaction": "😢",
                "unicode": "\\uD83D\\uDE22"
            },
            {
                "reaction": "😡",
                "unicode": "\\uD83D\\uDE21"
            },
            {
                "reaction": "👍",
                "unicode": "\\uD83D\\uDC4D"
            }
        ],
        "default": [],
        "animalsNature": [],
        "foodDrink": [],
        "activity": [],
        "travelPlaces": [],
        "objects": [],
        "symbols": [],
        "flags": [],
        "custom": []
    }
}

GetAllowedReactions errors#

For a list of errors common to all methods, refer to the Common errors section

Request examples#

import requests

url = "{{apiUrl}}/waInstance{{idInstance}}/getAllowedReactions/{{apiTokenInstance}}"

response = requests.post(url)

print(response.text.encode('utf8'))
curl --location --request POST '{{apiUrl}}/waInstance{{idInstance}}/getAllowedReactions/{{apiTokenInstance}}'