BaseMessageInterface
data: object
The data property of the text message.
text:null
|string
messaging_product: "whatsapp"
The messaging product.
BaseMessageInterface.messaging_product
recipient_type: "individual"
The recipient type.
BaseMessageInterface.recipient_type
toJson: (Converts the text message to a JSON object that can be sent as a request payload to the WhatsApp Cloud API.params
) =>object
string
object
optional
biz_opaque_callback_data:string
optional
context:object
message_id: string
messaging_product: "whatsapp"
preview_url: boolean
recipient_type: "individual"
text: object
body: string
optional
preview_url:boolean
to: string
type: Text
type: MessageTypeEnum
The type of the message.
BaseMessageInterface.type