Chat

Estrutura de dados do contrato OpenAPI.

Estrutura de dados do contrato OpenAPI.

Campos

CampoTipoPresençaDescrição
idstringobrigatório—
wa_chatidstringobrigatório—
namestringopcional—
wa_namestringopcional—
wa_contactNamestringopcional—
wa_isGroupbooleanobrigatório—
wa_unreadCountintegeropcional—
wa_archivedbooleanopcional—
wa_lastMsgTimestampintegerobrigatórioUnix em segundos. Formato: int64
wa_lastMessageTimeintegerobrigatórioUnix em segundos. Formato: int64
ownerstringopcional—
phonestringopcionalVazio para grupo ou LID sem telefone conhecido.
pictureIdstringopcional—
wa_isGroup_announcebooleanopcional—
participantCountintegeropcional—
topicstringopcional—

Definição OpenAPI

json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "wa_chatid": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "wa_name": {
      "type": "string"
    },
    "wa_contactName": {
      "type": "string"
    },
    "wa_isGroup": {
      "type": "boolean"
    },
    "wa_unreadCount": {
      "type": "integer"
    },
    "wa_archived": {
      "type": "boolean"
    },
    "wa_lastMsgTimestamp": {
      "type": "integer",
      "description": "Unix em segundos.",
      "format": "int64"
    },
    "wa_lastMessageTime": {
      "type": "integer",
      "description": "Unix em segundos.",
      "format": "int64"
    },
    "owner": {
      "type": "string"
    },
    "phone": {
      "type": "string",
      "description": "Vazio para grupo ou LID sem telefone conhecido."
    },
    "pictureId": {
      "type": "string"
    },
    "wa_isGroup_announce": {
      "type": "boolean"
    },
    "participantCount": {
      "type": "integer"
    },
    "topic": {
      "type": "string"
    }
  },
  "required": [
    "id",
    "wa_chatid",
    "wa_isGroup",
    "wa_lastMsgTimestamp",
    "wa_lastMessageTime"
  ]
}