Constructor
new Interactive(action, body, headeropt, footeropt)
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
action |
ActionList | ActionButtons | The action component of the interactive message | |
body |
Body | The body component of the interactive message | |
header |
Header |
<optional> |
The header component of the interactive message |
footer |
Footer |
<optional> |
The footer component of the interactive message |
_ |
String | The type of the interactive message, for internal use only |
Create an Interactive object for the API
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
action |
ActionList | ActionButtons | The action component of the interactive message | |
body |
Body | The body component of the interactive message | |
header |
Header |
<optional> |
The header component of the interactive message |
footer |
Footer |
<optional> |
The footer component of the interactive message |
Throws:
-
-
If action is not provided
- Type
- Error
-
-
-
If body is not provided
- Type
- Error
-