Messages
Messages
Messages are outbound operations sent through a ChatSend session. This section follows docs/messages-api-spec.md.
MessageResponse
| Field | Type | Description |
|---|---|---|
| id | string | Unique message identifier |
| to | string | Recipient phone number or group JID |
| content | string | Message content, media reference, or caption |
| type | string | Message type: text, image, video, document, or ptt |
| timestamp | string | ISO 8601 timestamp of when the message was sent |
| status | string | Delivery status such as sent, delivered, or read |
| fromMe | boolean | True when sent by the current session |
| sender | string | Sender phone number |
| recipient | string | Recipient identifier |
SuccessResponse
| Field | Type | Description |
|---|---|---|
| success | boolean | Whether the operation succeeded |
LinkPreview
| Field | Type | Required | Description |
|---|---|---|---|
| title | string | Yes | Title for the link preview |
| description | string | No | Description text |
| thumbnailUrl | string | No | URL of a JPEG or PNG thumbnail |