Message model
| Field | Type | Required | Description | Example |
|---|---|---|---|---|
id |
str | ✔️ | Message ID | 1234567890123456789 |
text |
str | ✔️ | Message text | Hello, how are you? |
time |
str | ✔️ | Message time | 2024-01-01T12:00:00Z |
attachment |
Dict[str, Any] | ➖ | Message attachment | { "type": "image", "url": "https://example.com/image.jpg" } |
attachments |
List[Dict[str, Any]] | ➖ | XChat media attachments (v3). | [ { "attachment_id": "cda5ccdd-af53-48a3-bdd1-5039a73aea25", "conversation_id": "1928096185664843776:1989842918455291904", "filename": "image.jpg", "filesize_bytes": 421299, "height": 1448, "key_version": "3", "media_hash_key": "blRIlZCVIO", "type": "image", "type_name": "IMAGE", "width": 1086 } ] |
sequence_id |
OptionalNullable[str] | ➖ | XChat sequence id. Use the oldest message's sequence_id as before for pagination. | 2076661179334979585 |
sender_id |
OptionalNullable[str] | ➖ | Sender ID | 1234567890123456789 |
recipient_id |
OptionalNullable[str] | ➖ | Recipient ID | 1234567890123456789 |