-
@Serializable() public final class MessageButtonOne option on an interactive flow prompt — Message.buttons, or a gallery card's own button stack.
The visitor answers by sending SendMessagePayload.value set to this option's value. The server matches on value, never on label.
-
-
Constructor Summary
Constructors Constructor Description MessageButton(String label, String value, String buttonType)
-
Method Summary
Modifier and Type Method Description final StringgetLabel()The caption to render. final StringgetValue()The match key, sent back as SendMessagePayload.value. final StringgetButtonType()Authored kind — "text"/"postback"/"url".-
-
Method Detail
-
getLabel
final String getLabel()
The caption to render. Wire key
labelon this lane — the platform GraphQL read spells the same fieldtext, so payloads from that source are not interchangeable with these.
-
getValue
final String getValue()
The match key, sent back as SendMessagePayload.value.
-
getButtonType
final String getButtonType()
Authored kind —
"text"/"postback"/"url". A free string, not an enum: an unknown kind must degrade, not fail to decode.The wire key is
type; without the SerialName it would serialize asbuttonTypeand decode to empty, silently turning every URL button into a plain postback.
-
-
-
-