Send File Message
In this page we show you how to send a message containing a pdf file.
A file-type conversation refers to a message that includes a file attachment.
In this table below you'll see the Arguments for this request.
Arguments
Explanation
mediaURL *required
Provides the URL where the file content is hosted or located
type *required
To specify the media type that will be used.
text (optional)
The text content of the message. Maximum length of 4096 characters.
Here's how to create a request for sending a file message to a WhatsApp user using the provided API endpoint.
{
"type": "file",
"mediaUrl": "https://www.w3.org/dummy.pdf",
"text": "Here is a pdf attached"
}
Last updated
Was this helpful?