Messages

Messages are managed by the websocket.

Reference

Conversation object

KeyTypeDescription
number {% class(unique) unique %}stringPhone number of the conversation (1-32 characters)
timestampnumberDate (unix ms, UTC)
last_message_contentstringContent of the last message (1-1024 characters)
selfbooleanIs phone number of custom_id equals to the last message sender?

Message object

KeyTypeDescription
numberstringPhone number of the sender (1-32 characters)
timestampnumberDate (unix ms, UTC)
message_contentstringContent of the message (1-1024 characters)

Message payload

KeyTypeDescription
contentstringContent of the message (1-1024 characters)
timestampnumberDate (unix ms, UTC)

Partial player payload

KeyTypeDescription
custom_idstring
unique
Unique identifier from your services (1-64 characters)
numberstringPhone number of the profile (1-64 characters)

IncomingMessage payload

KeyTypeDescription
senderPartialPlayerPayloadSender partial payload
recipientPartialPlayerPayloadRecipient partial payload
messageMessagePayloadMessage payload

Incoming events

Outgoing events

Powered by Doctave