如何在 WhatsApp API URL 中添加图像参数

Sie*_*iah 6 api parameters url image whatsapp

基本上,当用户单击“与 WhatsApp 聊天”图标时,我想从我的网站向 WhatsApp 发送图像和一些文本

所以我想将用户从我的网站重定向到我的 WhatsApp 聊天!我知道我们可以向 WhatsApp API URL 添加一个文本参数,如下所示:

https://api.whatsapp.com/send?phone=123456789&text=this is a test
Run Code Online (Sandbox Code Playgroud)

但事实是我想在 URL 中添加像图像参数和文本参数,例如这样:

https://api.whatsapp.com/send?phone=123456789&text=this is a test&img=[my-image]
Run Code Online (Sandbox Code Playgroud)

小智 -2

source_url 但您的文本不会显示(它是文本或图像)