如何通过 WhatsApp API 发送图像、音频或视频 - PHP [英] How to send image,audio or video through the WhatsApp API - PHP
问题描述
我在我的网站上实施了 WhatsAPI - PHP,但我只能发送消息,但不发送图像、音频或视频等媒体文件.
I have Implemented an WhatsAPI - PHP on my site, but am only able to send messages but not the Media files like Images, Audio or Video.
我得到了 PHP 的 WhatsApp API
I got the WhatsApp API for PHP
这是我的屏幕.
我不知道如何通过此 API 发送图像或任何其他媒体文件.我已经尝试了所有用于图像发送的 url.
I am not getting how to send an image or any other media files through this API. I have tried all url for image sending like.
- http://www.sample.com/images/sample.jpg
- C:\Users\Public\Pictures\Sample Pictures\sample.jpg
但它仍然无法发送任何媒体文件.请让我知道如何从此 API 发送图像.做错了什么......?
But it still not able to send any media file. Please let me know how to send an image from this API. What am doing wrong....?
推荐答案
我希望这也能奏效.请尝试让我们知道结果.
I Hope this also will work. Please try and let us know the result.
while($w->pollMessage());在 $w->sendMessageImage($target, "demo/x3.jpg");
这篇关于如何通过 WhatsApp API 发送图像、音频或视频 - PHP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!