Update one or more messages of a conversation.
This message SHALL be sent by the app in case a subscribed conversation has been changed
It MUST also be sent by the app as a response towards ack
or read
requests after they have been successfully delivered to the server.
This message acknowledges:
Message | Condition | Error Codes | ||||||
---|---|---|---|---|---|---|---|---|
request/ack (client -> app) | Only if associated to a request/ack and not before the app has successfully delivered the message to the server |
|
||||||
request/read (client -> app) | Only if associated to a request/read and not before the app has successfully delivered the message to the server |
|
This message is being subscribed by:
Message | Condition |
---|---|
request/messages (client -> app) | On successful acknowledgement |
Field | Description | Type | Optional | Nullable |
---|---|---|---|---|
type |
The receiver type Allowed values:
|
String | False | False |
id |
The receiver identity |
String | False | False |
mode |
The update mode Allowed values:
|
String | False | False |
Array<Map<Message>>
Note: If the mode is "removed"
, optional fields may be stripped
from the message.
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
type |
The message type Allowed values:
|
String | False | False | |
id |
The message id |
String | False | False | |
body |
The message body |
String | True | False | |
thumbnail |
The message thumbnail |
Map<Thumbnail> | True | False | |
date |
The message's date (last modification) as a unix timestamp in seconds |
Integer | True | False | |
events |
A list of message events |
Array<MessageEvent> | True | False | |
sortKey |
A number used for sorting messages, higher means newer, may not be negative |
Integer | False | False | |
partnerId |
The identity of the sender of this message |
String | True | False | |
isOutbox |
Whether this message was sent by the user |
Boolean | False | False | |
isStatus |
Whether this is a status message |
Boolean | False | False | |
statusType |
The status message type Allowed values:
|
String | True | False | |
caption |
The message caption |
String | True | False | |
unread |
Whether this message is unread |
Boolean | True | False | False |
state |
The message state
Allowed values:
|
String | True | False | |
lastEditedAt |
Unix timestamp in milliseconds of the last edit, or undefined if this message was not edited |
Integer | True | False | |
quote |
The message quote |
Map<Quote> | True | False | |
file |
The file info |
Map<File> | True | False | |
video |
The video info |
Map<Video> | True | False | |
audio |
The audio info |
Map<Audio> | True | False | |
location |
The location info |
Map<Location> | True | False | |
voip |
The voip status info |
Map<VoIP> | True | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
height |
The height of the thumbnail (max 350px) |
Integer | False | False | |
width |
The width of the thumbnail (max 350px) |
Integer | False | False | |
preview |
The thumbnail preview. This should be resized so that no side is larger than 50px. |
Binary | False | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
date |
The event date (last modification) as a unix time stamp in seconds |
Integer | False | False | |
type |
The event type
Allowed values:
|
String | False | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
identity |
The quote author's identity |
String | False | False | |
text |
The quote text |
String | False | False | |
messageId |
The message id of the quoted message |
String | True | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
name |
The file name |
String | False | False | |
size |
The file size in bytes |
Integer | False | False | |
type |
The file MIME type |
String | False | False | |
inApp |
TODO |
Boolean | False | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
duration |
The video duration in seconds |
Integer | False | False | |
size |
The video file size in bytes |
Integer | True | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
duration |
The duration of the audio message in seconds |
Integer | False | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
lat |
WSG84 latitude |
Float | False | False | |
lon |
WSG84 longitude |
Float | False | False | |
accuracy |
The horizontal accuracy in meters (the radius of 68% confidence) |
Float | False | False | |
address |
The address belonging to this location |
String | True | False | |
description |
Description text for this location |
String | False | False |
Field | Description | Type | Optional | Nullable | Default |
---|---|---|---|---|---|
status |
The type of VoIP status message
Allowed values:
|
Integer | False | False | |
duration |
The duration of the call in seconds |
Integer | True | False | |
reason |
The reject reason
Allowed values:
|
Integer | True | False |