GetAllowedReactions#
ืืฉืืื ื ืืขืื ืืงืืืช ืจืฉืืืช ืืชืืืืืช ืืืืื ืืช ืืืกื ืืณืจ. ืืื ืืฉืืื ืชืืืืืช ืืฆืณืื, ืืฉืชืืฉื ืืฉืืื 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