title: How to automatically attach media (pictures) and send it as WhatsApp message programatically?
body: <p>I'm developing a React JS project where I need to send a message via WhatsApp. I'm currently using this method:</p>
  <pre class="lang-js prettyprint-override"><code>let msg = 'This is an interesting caption.';
  let mobile = '+628123456789';
  
  let url = `whatsapp://send?phone=${mobile}&amp;text=${msg}`;
  
  Linking.openURL(url).then((data) =&gt; {
    console.log('WhatsApp Opened');
  }).catch(() =&gt; {
    alert('Please make sure WhatsApp installed on your device');
  });
  </code></pre>
  <p>I want to automatically attach a certain picture along with the caption/message like when you click on the 'Share via WhatsApp' button in Mobile Legends game.. is it possible to do this without using WhatsApp Cloud API?</p>
  <p>P.S.:</p>
  <ul>
  <li>looks like this question is similar to <a href="https://stackoverflow.com/q/72264185/1235167">this one</a> but it hasn't had any answers yet even after 3 months..</li>
  <li>I'm using Codeigniter 4 as the backend, so if it's not possible using javascript perhaps it can be done with PHP or Codeigniter?</li>
  </ul>