TextMessageData
class TextMessageData : MessageData
Message data for sending a text message in a conversation.
-
The text content of the message.
Declaration
Swift
let text: String -
The format of the text content (e.g. plain text or markdown).
Declaration
Swift
let textType: ConversationMessageTextType -
Optional quick reply options displayed to the recipient alongside the message.
Declaration
Swift
var quickreplies: [QuickReply]? -
Encodes this value into the given encoder.
If the value fails to encode anything,
encoderwill encode an empty keyed container in its place.This function throws an error if any values are invalid for the given encoder’s format.
Declaration
Swift
override func encode(to encoder: any Encoder) throws