OutboundMessage
public struct OutboundMessage
Represents outbound message which is send to an agent.
-
The text of the message.
Declaration
Swift
public let text: String -
The list of attachments. May contain single attachment.
Declaration
Swift
public let attachments: [ContentDescriptor] -
The postback used within rich content messages.
This value must be provided when sending answer prompt with a rich content type defined in
MessageContentType.Declaration
Swift
public let postback: String?
-
Declaration
Swift
public init(text: String, attachments: [ContentDescriptor] = [], postback: String? = nil)Parameters
textThe text of the message.
attachmentsThe list of attachments. May contain single attachment.
postbackThe postback used within rich content messages.
View on GitHub