ReplyMessage

data class ReplyMessage(val text: String, val payload: String, val iconUrl: URI? = null) : MessageBody

Represents a reply message.

Throws

if the text or payload is blank, or if the payload surpasses 512 characters and the text surpasses 50 characters.

Constructors

Link copied to clipboard
constructor(text: String, payload: String, iconUrl: URI? = null)

Properties

Link copied to clipboard
open override val elementText: ElementText

The text of the message body

Link copied to clipboard
open override val elementType: ElementType

The type of the body element such as text

Link copied to clipboard
val iconUrl: URI? = null

The URL of the icon (optional).

Link copied to clipboard

The payload of the message. Must not be blank and its length must not exceed 512 characters.

Link copied to clipboard

The rich-media payload

Link copied to clipboard

The text of the message. Must not be blank and its length must not exceed 50 characters.