Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Name

Type

Description

room

Status
titleSTRING

Chat unique identifier

data

Status
titleobject

Object containing message info. See message data object for more details.

Message Data Object

Name

Type

Description

id

Status
titlestring

message unique identifier

messageType

Status
titleSTRING

Type of the message. Can assume one of the following values:

“TEXT”

“IMAGE”

“DOCUMENT”

“LINK”

ts

Status
titleNUMBER

Timestamp of when message was sent

deliverySuccess

Status
titleboolean

Indicates whether the message was sent successfully

deliveryErrorReason

Status
titlestring

Error occurred if the message was not sent correctly

Message Content Object

Name

Type

Description

text

Status
titleSTRING

Only in “TEXT” message, contains the message sent

user

Status
titleobject

Semplified user object containing only user id and isAgent properties of the user who sent the message.

url

Status
titleSTRING

Contains the url of the link message

id [content object]

Status
titlestring

Contains the id of the multimedia message sent.

...