sdk/v2/data~ message

Builders for message objects.

Methods

(static) user(input) → {Object}

Build a user message from input, splitting it into an info envelope and a list of parts that reference the message and session ids.

Parameters:
NameTypeDescription
inputObject

Message input including parts and the remaining info fields (e.g. sessionID).

Properties
NameTypeDescription
partsArray.<Object>

The message parts to attach.

Returns:

The assembled message info and parts.

Type: 
Object