Referência/Legacy - Messages/legacySendReactionMessage
Legacy - Messages

Envia reação pelo alias legado

Envia reação pelo alias legado

Deprecated
POSThttp://localhost:8084/message/sendReaction/{instanceName}

Autenticação

InstanceBearerobrigatório

JWT HS256 da própria instância.

Header
Authorization
Exemplo
Bearer <INSTANCE_TOKEN>

Parâmetros

instanceNamepathobrigatório
string

Nome público da instância na rota legada ou no segundo segmento de logout

minLength 1

Request body

obrigatório
bodyobject
reactionMessageobjectobrigatório
keyobjectobrigatório
remoteJidstringobrigatóriominLength: 1
idstringobrigatóriominLength: 1
fromMeboolean
participantstring
reactionstringobrigatório
Exemplo JSONgerado do schema
{
"reactionMessage": {
"key": {
"remoteJid": "[email protected]",
"id": "string",
"fromMe": true,
"participant": "string"
},
"reaction": "string"
}
}

Respostas

application/json
200

Mensagem enviada

response 200object
idintegerobrigatório
keyIdstringobrigatório
keyRemoteJidstring | nullobrigatório
keyLidstring | nullobrigatório
keyFromMebooleanobrigatório
keyParticipantstring | nullobrigatório
keyParticipantLidstring | nullobrigatório
pushNamestring | nullobrigatório
messageTypestringobrigatório
contentanyobrigatório
messageTimestampintegerobrigatório
deviceenum<ios | android | web | unknown | desktop>obrigatório
isGroupboolean | nullobrigatório
instanceIdintegerobrigatório
metadataany
externalAttributesobject
Exemplo 200gerado do schema
{
"id": 1,
"keyId": "string",
"keyRemoteJid": "[email protected]",
"keyLid": "string",
"keyFromMe": true,
"keyParticipant": "string",
"keyParticipantLid": "string",
"pushName": "CodeChat",
"messageType": "Olá! Esta é uma mensagem de exemplo da CodeChat.",
"content": "string",
"messageTimestamp": 1,
"device": "ios",
"isGroup": true,
"instanceId": 1,
"metadata": "string",
"externalAttributes": {}
}