Skip to content

Latest commit

 

History

History
17 lines (13 loc) · 17.7 KB

MessageModel.md

File metadata and controls

17 lines (13 loc) · 17.7 KB

MessageModel

Message model

Fields

Field Setter Type Getter Type Required Description Example
id String String ✔️ Message ID 1234567890123456789
text String String ✔️ Message text Hello, how are you?
time String String ✔️ Message time 2024-01-01T12:00:00Z
attachment @Nullable Map<String, Object> JsonNullable<Map<String, Object>> ➖ Message attachment
Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null.
{
"type": "image",
"url": "https://example.com/image.jpg"
}
attachments @Nullable List<Map\<String, Object>> JsonNullable<List<Map\<String, Object>>> ➖ XChat media attachments (v3).
Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null.
[
{
"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 @Nullable String JsonNullable<String> ➖ XChat sequence id. Use the oldest message's sequence_id as before for pagination.
Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null.
2076661179334979585
senderId @Nullable String JsonNullable<String> ➖ Sender ID
Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null.
1234567890123456789
recipientId @Nullable String JsonNullable<String> ➖ Recipient ID
Supports tri-state: omit setter to leave unset, pass null to send explicit JSON null.
1234567890123456789