PostbackMessage

data class PostbackMessage(val text: String, val payload: String) : MessageBody

Represents a postback 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)

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

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.