Constructor
new Request(object, to, context)
Properties:
Name | Type | Attributes | Description | ||||||
---|---|---|---|---|---|---|---|---|---|
messaging_product |
String | The messaging product (always "whatsapp") | |||||||
type |
String | The type of message | |||||||
to |
String | The user's phone number | |||||||
context |
Object |
<optional> |
The message to reply to
Properties
|
||||||
text |
String |
<optional> |
The text object stringified to send | ||||||
audio |
String |
<optional> |
The audio object stringified to send | ||||||
document |
String |
<optional> |
The document object stringified to send | ||||||
image |
String |
<optional> |
The image object stringified to send | ||||||
sticker |
String |
<optional> |
The sticker object stringified to send | ||||||
video |
String |
<optional> |
The video object stringified to send | ||||||
location |
String |
<optional> |
The location object stringified to send | ||||||
contacts |
String |
<optional> |
The contacts object stringified to send | ||||||
interactive |
String |
<optional> |
The interactive object stringified to send | ||||||
template |
String |
<optional> |
The template object stringified to send |
Create a Request object for the API
Parameters:
Name | Type | Description |
---|---|---|
object |
Text | Audio | Document | Image | Sticker | Video | Location | Contacts | Interactive | Template | The object to send |
to |
String | The user's phone number |
context |
String | The message_id to reply to |