Class: InteractiveMessage

InteractiveMessage(body, actions, options)

Immutable native-flow interactive message descriptor.

This initial builder intentionally supports only quick replies, HTTPS URL CTAs, E.164 call CTAs and copy-code CTAs. It does not build payments, orders, catalogs, templates or flows, and it does not upload header media.

Constructor

new InteractiveMessage(body, actions, options)

Parameters:
Name Type Description
body string

Message body

actions Array.<InteractiveMessageAction>

One to three actions

options InteractiveMessageOptions

Message options

Source:

Members

actions :ReadonlyArray.<Object>

Type:
  • ReadonlyArray.<Object>
Source:

body :string

Type:
  • string
Source:

buttons :ReadonlyArray.<Object>

Type:
  • ReadonlyArray.<Object>
Source:

fallbackText :string

Type:
  • string
Source:
Type:
  • string | undefined
Source:
Type:
  • Object | undefined
Source:

interactiveType :'native_flow'

Type:
  • 'native_flow'
Source:

messageParamsJson :'{}'

Type:
  • '{}'
Source:

messageVersion :1

Type:
  • 1
Source:

nativeFlowName :string

Type:
  • string
Source:

wireData :Readonly.<Object>

Type:
  • Readonly.<Object>
Source:

Methods

toJSON() → {Readonly.<Object>}

Returns the deeply frozen, serializable bridge descriptor.

Source:
Returns:
Type
Readonly.<Object>