SunshineConversationsClient::Link

August 27, 2025 ยท View on GitHub

Properties

NameTypeDescriptionNotes
typeStringThe type of action.[default to 'link']
uriStringThe action URI. This is the link that will be used in the clients when clicking the button.
textStringThe button text.
defaultBooleanBoolean value indicating whether the action is the default action for a message item in Facebook Messenger.[optional]
metadataHash<String, Object>Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size.[optional]
extra_channel_optionsExtraChannelOptions[optional]

Example

require 'sunshine-conversations-client'

instance = SunshineConversationsClient::Link.new(
  type: null,
  uri: null,
  text: null,
  default: null,
  metadata: {&quot;lang&quot;:&quot;en-ca&quot;},
  extra_channel_options: null
)