💬 Send a message
Send a message to the specified phone number
await whatsapp.sendMessage(
phoneNumber : 'RECIPIENT_NUMBER',
text : 'text_message',
previewUrl : true,
);
Return Methods
Please find out supported return method here. That return method can be used in all methods.
param | type | required | description |
---|---|---|---|
phoneNumber | String | yes | Phone number with country code. |
text | String | yes | A text message to send |
previewUrl | bool | no | URL preview in message if there is any link |