Text

data class Text(val body: String, val rawData: String = "") : ContentData

Contains only plain text-based content. Represents the twilio/text content type.

Constructors

Link copied to clipboard
fun Text(body: String, rawData: String = "")

Properties

Link copied to clipboard
val body: String

The text of the message you want to send.

Link copied to clipboard
open override val rawData: String

Full data as stringified JSON. Can be used for new content types and fields which are not supported in the current version of Conversations SDK.