LegacyMessage
Estrutura de dados do contrato OpenAPI.
Estrutura de dados do contrato OpenAPI.
Campos
| Campo | Tipo | Presença | Descrição |
|---|---|---|---|
id | string | obrigatório | owner:messageid. |
messageid | string | obrigatório | — |
chatid | string | obrigatório | — |
sender | string | opcional | — |
sender_pn | string | opcional | — |
senderName | string | opcional | — |
pushName | string | opcional | — |
isGroup | boolean | opcional | — |
fromMe | boolean | obrigatório | — |
wasSentByApi | boolean | opcional | — |
messageType | string | opcional | Tipo legado PascalCase. |
type | string | opcional | — |
messageTimestamp | integer | opcional | Unix em milissegundos. Formato: int64 |
timestamp | integer | opcional | Unix em segundos. Formato: int64 |
status | string | opcional | Pending, Sent, Delivered, Read, Played, Failed, Received ou Deleted. |
text | string | opcional | — |
content | object | opcional | — |
buttonOrListid | string | opcional | — |
reactions | array<object> | opcional | — |
choices | any | opcional | Opções armazenadas de menus/enquetes; estrutura depende do tipo e pode ser null. |
fileURL | string | opcional | — |
mediaUrl | string | opcional | — |
Definição OpenAPI
json
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "owner:messageid."
},
"messageid": {
"type": "string"
},
"chatid": {
"type": "string"
},
"sender": {
"type": "string"
},
"sender_pn": {
"type": "string"
},
"senderName": {
"type": "string"
},
"pushName": {
"type": "string"
},
"isGroup": {
"type": "boolean"
},
"fromMe": {
"type": "boolean"
},
"wasSentByApi": {
"type": "boolean"
},
"messageType": {
"type": "string",
"description": "Tipo legado PascalCase."
},
"type": {
"type": "string"
},
"messageTimestamp": {
"type": "integer",
"description": "Unix em milissegundos.",
"format": "int64"
},
"timestamp": {
"type": "integer",
"description": "Unix em segundos.",
"format": "int64"
},
"status": {
"type": "string",
"description": "Pending, Sent, Delivered, Read, Played, Failed, Received ou Deleted."
},
"text": {
"type": "string"
},
"content": {
"type": "object"
},
"buttonOrListid": {
"type": "string"
},
"reactions": {
"type": "array",
"items": {
"type": "object"
}
},
"choices": {
"description": "Opções armazenadas de menus/enquetes; estrutura depende do tipo e pode ser null."
},
"fileURL": {
"type": "string"
},
"mediaUrl": {
"type": "string"
}
},
"required": [
"id",
"messageid",
"chatid",
"fromMe"
]
}