Skip to main content
Version: 3.0.0

🔗 Send a Document by URL

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

await whatsapp.sendDocumentById(
phoneNumber : 'PHONE_NUMBER',
documentUrl : 'https://whatsapp-flutter.github.io/samples/whatsapp-flutter.pdf',
caption : 'WhatsApp Flutter Package PDF',
fileName: 'whatsapp-flutter.pdf'
);
paramtyperequireddescription
phoneNumberStringyesPhone number with county code and plus.
documentUrlStringyesDirect Document URL
captionStringnoA caption with document
fileNameStringnoDocument file name