Skip to main content
Version: 4.0.0

🔗 Send Document by URL

Send a document to the specified phone number using a direct document URL.

await whatsapp.sendDocumentByUrl(
phoneNumber : 'RECIPIENT_NUMBER',
documentUrl : 'https://whatsapp-flutter.github.io/samples/sample.pdf',
caption : 'Sample File',
fileName: 'sample.pdf'
);
paramtyperequireddescription
phoneNumberStringyesPhone number with country code.
documentUrlStringyesDirect Document URL
captionStringnoA caption with document
fileNameStringnoDocument file name