有没有办法从移动网站上打开whatsapp应用程序?我知道如果你使用whatsapp://
你可以打开whatsapp应用程序,但我如何打开whatsapp并创建一个给定数字的新对话?可能吗?谢谢!
感谢评论,我得到了他们的解决方案:whatsapp://send?phone=XXXXXXX
所以西班牙语的数字是+34 644 789 83
whatsapp://send?phone=3464478983
api.whatsapp.com也很好。以相同的方式使用它,删除(+)符号和磨刀号中的空格。
<a href="https://api.whatsapp.com/send?phone=50600000000">Click to connect +506 0000 0000</a>
<a href="https://api.whatsapp.com/send?phone=+910000000000&text=Hi, I contacted you Through your website." class="social-icon whatsapp"></a>
对于网络 -
上面的解决方案效果很好,但对我来说,我更喜欢同时使用移动应用和网络。
你可以像这样使用它(空闲聊天):
<p>My whatsapp +1 987654321 <a href="https://api.whatsapp.com/send?phone=0000000000">Web</a> | <a href="whatsapp://send?phone=0000000000">App</a></p>
您可以像这样使用它(使用聊天文本):
<p>My whatsapp +1 987654321 <a href="https://api.whatsapp.com/send?phone=0000000000&text=example">Web</a> | <a href="whatsapp://send?phone=0000000000&text=example">App</a></p>
这将使您的访问者可以通过PC浏览器或移动浏览器与您联系。
浏览器中的此链接将打开whatsapp应用程序,其中包含所提供号码的聊天对话
Wa.me/91xxxxxxxxxx