Parameters | Required | Description |
---|---|---|
message_id | ✅ | Message id |
message_version | ✅ | Message version |
status | 1️⃣ | Message status (RoomMessageStatus) |
status_version | 1️⃣ | Message status version |
message_type | 1️⃣ | Message type (RoomMessageType) |
message | 1️⃣ 2️⃣ | Message text |
attachment | 1️⃣ 2️⃣ | Attachments (File) |
user_id | 1️⃣ | Message sender's user id |
location | 1️⃣ 2️⃣ | Location info (RoomMessageLocation) |
log | 1️⃣ 2️⃣ | Log (RoomMessageLog) |
edited | 1️⃣ | Indicates whether or not the message is edited |
update_time | 1️⃣ | Message update time |
deleted | ✅ | Set to true if message is deleted |
1️⃣ When message is not deleted
2️⃣ Requirements depend on message_type according to following table
message_type | message | attachment | location | log | contact |
---|---|---|---|---|---|
TEXT | ✅ | ❎ | ❎ | ❎ | ❎ |
IMAGE | ❎ | ✅ | ❎ | ❎ | ❎ |
IMAGE_TEXT | ✅ | ✅ | ❎ | ❎ | ❎ |
VIDEO | ❎ | ✅ | ❎ | ❎ | ❎ |
VIDEO_TEXT | ✅ | ✅ | ❎ | ❎ | ❎ |
AUDIO | ❎ | ✅ | ❎ | ❎ | ❎ |
AUDIO_TEXT | ✅ | ✅ | ❎ | ❎ | ❎ |
VOICE | ❎ | ✅ | ❎ | ❎ | ❎ |
GIF | ❎ | ✅ | ❎ | ❎ | ❎ |
FILE | ❎ | ✅ | ❎ | ❎ | ❎ |
FILE_TEXT | ✅ | ✅ | ❎ | ❎ | ❎ |
LOCATION | ❎ | ❎ | ✅ | ❎ | ❎ |
LOG | ❎ | ❎ | ❎ | ✅ | ❎ |
CONTACT | ❎ | ❎ | ❎ | ❎ | ✅ |