OutboundMessage

public struct OutboundMessage

Represents outbound message which is send to an agent.

Properties

  • 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?

Init

  • Declaration

    Swift

    public init(text: String, attachments: [ContentDescriptor] = [], postback: String? = nil)

    Parameters

    text

    The text of the message.

    attachments

    The list of attachments. May contain single attachment.

    postback

    The postback used within rich content messages.