Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 14.8 KB

File metadata and controls

17 lines (13 loc) · 14.8 KB

MessageModel

Message model

Fields

Field Type Required Description Example
id string ✔️ Message ID 1234567890123456789
text string ✔️ Message text Hello, how are you?
time string ✔️ Message time 2024-01-01T12:00:00Z
attachment array<string, mixed> Message attachment {
"type": "image",
"url": "https://example.com/image.jpg"
}
attachments array<array<string, mixed>> 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
}
]
sequenceId ?string XChat sequence id. Use the oldest message's sequence_id as before for pagination. 2076661179334979585
senderId ?string Sender ID 1234567890123456789
recipientId ?string Recipient ID 1234567890123456789