Skip to main content
This topic has been closed for replies.
Correct answer try67

According to the WA documentation you can only create a link to a phone number with some text via it, not to attach a file automatically.

3 replies

Participating Frequently
May 1, 2024

"Create a 'Send PDF on WhatsApp' button with appropriate functionality using WhatsApp's API or a third-party service. Include clear instructions for users to select the PDF file and initiate the sending process."

Linda Sean
New Participant
December 12, 2023

As of my last knowledge update in January 2022, WhatsApp does not directly support creating buttons within the app for sending files. WhatsApp primarily relies on its user interface for file sharing, and interactions are generally limited to the options provided within the app.

However, if you are working on a website or a digital platform and want to create a button that, when clicked, initiates the process of sending a PDF file via WhatsApp, you might consider using a combination of HTML and a WhatsApp link.

Here's a simple example:

<a href="whatsapp://send?text=Check%20out%20this%20PDF&phone=PHONE_NUMBER" target="_blank">
<button>Send PDF on WhatsApp</button>
</a>

Replace PHONE_NUMBER with the recipient's phone number (including the country code), and adjust the text parameter as needed. When the user clicks the button, it will open WhatsApp with a pre-filled message. They can then select the recipient and send the PDF file manually.

Remember that the user must have WhatsApp installed, and this method may vary depending on the platform and updates to the WhatsApp app.

Always check for the latest documentation or updates from WhatsApp regarding any changes in their linking and sharing capabilities.

 

If you need more information about WhatsApp then click the given below:

 "How to Hide WhatsApp Chat on iPhone and Android"

try67
try67Correct answer
Adobe Expert
June 30, 2023

According to the WA documentation you can only create a link to a phone number with some text via it, not to attach a file automatically.

New Participant
June 30, 2023

Can I make a button to send a PDF file on email instead of WhatsApp but in an automated way via javascript

try67
Adobe Expert
June 30, 2023

You can generate an email draft with the file attached to it, but the user will still have to manually click on Send for it to go out. Sending an email automatically requires installing a script file with special code on the local machine of each user.