MessageQuickReplies

public struct MessageQuickReplies : Equatable, Sendable

Text message with buttons. After the customer clicks on one of the buttons, its content is sent as a reply.

Usually, when a reply is sent, it is no more possible to click again on any button. You can have between two and five (depending on the channel) customizable choices, and the user can select only a single item.

When a quick reply is tapped, the buttons are dismissed, and the title of the tapped button is posted to the conversation as a message.

  • Title of the Quick Replies in the conversation

    Declaration

    Swift

    public let title: String
  • The quick replies button options.

    Declaration

    Swift

    public let buttons: [MessageReplyButton]

Init

  • Creates a MessageQuickReplies.

    Declaration

    Swift

    public init(title: String, buttons: [MessageReplyButton])

    Parameters

    title

    The title displayed above the quick-reply buttons in the conversation.

    buttons

    The selectable reply buttons; typically two to five per channel configuration.