class Line::Message::Builder::Actions::Message

Represents a message action for LINE messages.

A message action sends a specified text message to the chat from the user when a button associated with this action is tapped. Itโ€™s commonly used in quick replies or other interactive message components.

Example

Line::Message::Builder.with do
  text "Select your favorite food:"
  quick_reply do
    # When this button is tapped, the user sends "Pizza"
    button action: :message, label: "Pizza", text: "Pizza"
    # When this button is tapped, the user sends "Sushi"
    button action: :message, label: "Sushi", text: "Sushi"
  end
end

See also: