Package 

Class SendMessagePayload

    • Method Detail

      • getValue

         final String getValue()

        The chosen MessageButton.value when this send answers an interactive prompt. The server matches a button on this, falling back to text — so text must ALSO be set (to the option's label): a body with no text/html/attachments is refused with a 400 before the flow ever sees it.

        Omitted from the wire when null (encodeDefaults is off).

      • getGalleryLabel

         final String getGalleryLabel()

        The picked MessageCard.title when answering a gallery prompt. The server matches a gallery pick on the PAIR (galleryLabel, value), which is what disambiguates two cards sharing a button value. Leave null for a plain button reply.