buildNewMessage

fun buildNewMessage(message: String, attachments: List<Attachment> = emptyList()): Message

Builds a new Message to send to our API. If isInEditMode is true, we use the current action's message and apply the given changes.

If we're not editing a message, we fill in the required data for the message.

Return

Message object, with all the data required to send it to the API.

Parameters

message

Message text.

attachments

Message attachments.