Constructor
new Header(object)
- Source:
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
type |
String | The type of the header | |
text |
String |
<optional> |
The text of the parameter |
image |
Image |
<optional> |
The image of the parameter |
document |
Document |
<optional> |
The document of the parameter |
video |
Video |
<optional> |
The video of the parameter |
Builds a header component for an Interactive message
Parameters:
Name | Type | Description |
---|---|---|
object |
Document | Image | Text | Video | The message object for the header |
Throws:
-
-
If object is not provided
- Type
- Error
-
-
-
If object is not a Document, Image, Text, or Video
- Type
- Error
-
-
-
If object is a Text and is over 60 characters
- Type
- Error
-