Skip to content

GetAllowedReactions#

Test Postman Apidog

ื”ืฉื™ื˜ื” ื ื•ืขื“ื” ืœืงื‘ืœืช ืจืฉื™ืžืช ื”ืชื’ื•ื‘ื•ืช ื”ื–ืžื™ื ื•ืช ื‘ืžืกื ื’ืณืจ. ื›ื“ื™ ืœืฉืœื•ื— ืชื’ื•ื‘ื•ืช ืœืฆืณืื˜, ื”ืฉืชืžืฉื• ื‘ืฉื™ื˜ื” SendReaction.

ื‘ืงืฉื”#

ื›ื“ื™ ืœืงื‘ืœ ืจืฉื™ืžืช ืชื’ื•ื‘ื•ืช ื–ืžื™ื ื•ืช, ื™ืฉ ืœื‘ืฆืข ื‘ืงืฉื” ืœื›ืชื•ื‘ืช:

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

ืœืงื‘ืœืช ืคืจืžื˜ืจื™ ื”ื‘ืงืฉื” apiUrl, idInstance ื•-apiTokenInstance ืขื™ื™ื ื• ื‘ื—ืœืง ืœืคื ื™ ืชื—ื™ืœืช ื”ืขื‘ื•ื“ื”.

ืคืจืžื˜ืจื™ URL ืฉืœ ื”ื‘ืงืฉื”#

ืคืจืžื˜ืจ ืกื•ื’ ื—ื•ื‘ื” ืชื™ืื•ืจ
chatId string ืœื ื‘ืขืช ืฆื™ื•ืŸ ืžื–ื”ื” ืฆืณืื˜ ื”ืฉื™ื˜ื” ืชื—ื–ื™ืจ ืืช ืงื‘ื•ืฆืช ื”ืชื’ื•ื‘ื•ืช ื”ื–ืžื™ื ื•ืช ืขื‘ื•ืจ ื”ืฆืณืื˜ ืฉืฆื•ื™ืŸ. ื›ื‘ืจื™ืจืช ืžื—ื“ืœ ืžื•ืฆื’ื•ืช ื›ืœ ื”ืชื’ื•ื‘ื•ืช ื”ื–ืžื™ื ื•ืช ื‘ืžืกื ื’ืณืจ WhatsApp

ื“ื•ื’ืžื” ืœื’ื•ืฃ ื”ื‘ืงืฉื”#

{
    "chatId": "120363043968066561@g.us"
}

ืชื’ื•ื‘ื”#

ืฉื“ื•ืช ื”ืชื’ื•ื‘ื”#

ืฉื“ื” ืกื•ื’ ืชื™ืื•ืจ
reactions object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืขื ื”ืชื’ื•ื‘ื•ืช

ืฉื“ื•ืช ื”ืื•ื‘ื™ื™ืงื˜ reactions#

ืฉื“ื” ืกื•ื’ ืชื™ืื•ืจ
quick object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ืงื˜ื’ื•ืจื™ื™ืช ื”ืชื’ื•ื‘ื•ืช ื”ืžื”ื™ืจื•ืช
default object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ืงื˜ื’ื•ืจื™ื™ืช ื”ืชื’ื•ื‘ื•ืช ื”ืกื˜ื ื“ืจื˜ื™ื•ืช
animalsNature object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ื—ื™ื•ืช ื•ื˜ื‘ืข"
foodDrink object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ืื•ื›ืœ ื•ืžืฉืงืื•ืช"
activity object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ืคืขื™ืœื•ืช"
travelPlaces object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ื˜ื™ื•ืœื™ื"
objects object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ืื•ื‘ื™ื™ืงื˜ื™ื"
symbols object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ืกืžืœื™ื"
flags object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ื”ืงื˜ื’ื•ืจื™ื” "ื“ื’ืœื™ื"
custom object ืื•ื‘ื™ื™ืงื˜ ื ืชื•ื ื™ื ืฉืœ ืงื˜ื’ื•ืจื™ื™ืช ื”ืชื’ื•ื‘ื•ืช ื”ืžื•ืชืืžื•ืช ืื™ืฉื™ืช

ืฉื“ื•ืช ืื•ื‘ื™ื™ืงื˜ ื”ืงื˜ื’ื•ืจื™ื”#

ืฉื“ื” ืกื•ื’ ืชื™ืื•ืจ
reaction string emoji ืฉืœ ื”ืชื’ื•ื‘ื”
unicode string ื”ืชื’ื•ื‘ื” ื‘ืคื•ืจืžื˜ ื™ื•ื ื™ืงื•ื“

ื“ื•ื’ืžื” ืœื’ื•ืฃ ื”ืชื’ื•ื‘ื”#

{
  "reactions": {
    "quick": [
      {
        "reaction": "โค",
        "unicode": "\\u2764"
      },
      {
        "reaction": "๐Ÿ‘",
        "unicode": "\\uD83D\\uDC4D"
      },
      {
        "reaction": "๐Ÿ‘Ž",
        "unicode": "\\uD83D\\uDC4E"
      },
      {
        "reaction": "๐Ÿ”ฅ",
        "unicode": "\\uD83D\\uDD25"
      },
      {
        "reaction": "๐Ÿฅฐ",
        "unicode": "\\uD83E\\uDD70"
      },
      {
        "reaction": "๐Ÿ‘",
        "unicode": "\\uD83D\\uDC4F"
      }
    ],
    "default": [
      {
        "reaction": "โค",
        "unicode": "\\u2764"
      },
      {
        "reaction": "๐Ÿ‘",
        "unicode": "\\uD83D\\uDC4D"
      },
      {
        "reaction": "๐Ÿ‘Ž",
        "unicode": "\\uD83D\\uDC4E"
      },
      {
        "reaction": "๐Ÿ”ฅ",
        "unicode": "\\uD83D\\uDD25"
      },
      {
        "reaction": "๐Ÿคทโ€โ™‚",
        "unicode": "\\uD83E\\uDD37\\u200D\\u2642"
      },
      {
        "reaction": "๐Ÿคท",
        "unicode": "\\uD83E\\uDD37"
      },
      {
        "reaction": "๐Ÿคทโ€โ™€",
        "unicode": "\\uD83E\\uDD37\\u200D\\u2640"
      },
      {
        "reaction": "๐Ÿ˜ก",
        "unicode": "\\uD83D\\uDE21"
      }
    ],
    "animalsNature": [],
    "foodDrink": [],
    "activity": [],
    "travelPlaces": [],
    "objects": [],
    "symbols": [],
    "flags": [],
    "custom": []
  }
}

ืฉื’ื™ืื•ืช GetAllowedReactions#

ืืช ืจืฉื™ืžืช ื”ืฉื’ื™ืื•ืช ื”ืžืฉื•ืชืคื•ืช ืœื›ืœ ื”ืฉื™ื˜ื•ืช ืจืื• ื‘ื—ืœืง ืฉื’ื™ืื•ืช ืกื˜ื ื“ืจื˜ื™ื•ืช

ื“ื•ื’ืžืื•ืช ืงื•ื“#

import requests

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

payload = {
    "chatId": "120363043968066561@g.us"
    }

headers = {'Content-Type': 'application/json'}

response = requests.post(url, json=payload)

print(response.text.encode('utf8'))
curl --location '{{apiUrl}}/waInstance{{idInstance}}/getAllowedReactions/{{apiTokenInstance}}'
--header 'Content-Type: application/json' \
--data-raw '{
    "chatId": "120363043968066561@g.us"
}'
var restTemplate = new RestTemplate();
var requestUrl = new StringBuilder();
requestUrl
    .append({{apiUrl}})
    .append("/waInstance").append({{idInstance}})
    .append("/getAllowedReactions/")
    .append({{apiTokenInstance}});

var headers = new HttpHeaders();
headers.setContentType(MediaType.APPLICATION_JSON);

var jsonBody = "{\"chatId\": \"120363043968066561@g.us\"}";

var requestEntity = new HttpEntity<>(jsonBody, headers);

var response = restTemplate.exchange(requestUrl.toString(), HttpMethod.GET, null, String.class);
System.out.println(response);
var requestUrl = new StringBuilder();
requestUrl
    .append({{apiUrl}})
    .append("/waInstance").append({{idInstance}})
    .append("/getAllowedReactions/")
    .append({{apiTokenInstance}});

var response = Unirest.post(requestUrl.toString())
.header("Content-Type", "application/json")
.body("{\"chatId\": \"120363043968066561@g.us\"}")
.asString();

System.out.println(response);
Sub GetAllowedReactions()
    Dim url As String
    Dim http As Object
    Dim response As String

    ' The apiUrl, idInstance and apiTokenInstance values are available in console, double brackets must be removed
    url = "{{apiUrl}}/waInstance{{idInstance}}/getAllowedReactions/{{apiTokenInstance}}"

    'chatId - personal or group chat identifier whose message history you want to receive, count - number of messages to receive, default value 100
    RequestBody = "{""chatId"":""120363043968066561@g.us""}"

    Set http = CreateObject("MSXML2.XMLHTTP")

    http.Open "GET", url, False
    http.Send

    response = http.responseText

    Debug.Print response

    ' Outputting the answer to the desired cell
    Range("A1").Value = response

    Set http = Nothing
End Sub