Skip to content

Latest commit

 

History

History
47 lines (40 loc) · 3.06 KB

File metadata and controls

47 lines (40 loc) · 3.06 KB

SunshineConversationsClient::Content

Properties

Name Type Description Notes
type String The type of message. [default to 'template']
text String The fallback text message used when location messages are not supported by the channel. [optional] [readonly]
actions Array<ActionSubset> An array of objects representing the actions associated with the message. The array length is limited by the third party channel. [optional]
payload String The payload of a reply button response message. [optional]
items Array<Item> An array of objects representing the items associated with the message. Only present in carousel and list type messages.
display_settings CarouselMessageDisplaySettings [optional]
media_url String The URL for media, such as an image, attached to the message.
media_size Float The size of the media. [optional] [readonly]
media_type String The media type of the file. [optional] [readonly]
alt_text String An optional description of the image for accessibility purposes. The field will be saved by default with the file name as the value. [optional]
block_chat_input Boolean true if the message should block the chat input on Web Messenger. [optional]
fields Array<Field> Array of field objects that contain the submitted fields.
text_fallback String A string containing the `label: value` of all fields, each separated by a newline character. [optional] [readonly]
coordinates LocationMessageCoordinates
location LocationMessageLocation [optional]
template Object The whatsapp template message to send. For more information, consult the guide. `schema` must be set to `whatsapp`.

Code Sample

require 'SunshineConversationsClient'

instance = SunshineConversationsClient::Content.new(type: null,
                                 text: null,
                                 actions: null,
                                 payload: null,
                                 items: null,
                                 display_settings: null,
                                 media_url: null,
                                 media_size: null,
                                 media_type: null,
                                 alt_text: null,
                                 block_chat_input: null,
                                 fields: null,
                                 text_fallback: null,
                                 coordinates: null,
                                 location: null,
                                 template: null)