如何使用官方 API 在 WhatsApp 群组上发送消息 [英] How to send message on WhatsApp Group using official API

查看:169
本文介绍了如何使用官方 API 在 WhatsApp 群组上发送消息的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道使用 WhatsApp 官方 API 向任何号码发送消息

I know about send message to any number using WhatsApp official API using

https://api.whatsapp.com/send?phone=

但是,如果用户加入了该组,有什么方法可以向 WhatsApp 组发送消息.我有一个表单,并希望通过点击在我们的 whatsapp 组中共享此表单数据.

But is there any way to send message to WhatsApp Group is user is joined that group. I have a form and want this form data to be shared in our whatsapp group on click.

推荐答案

WhatsApp Business API 客户端支持部分功能由您已经从 Android 中知道的 WhatsApp 应用程序提供,iOS、Web 和其他平台,包括端到端加密.这不同之处在于这个应用程序可以部署在服务器上,提供本地 API,允许您以编程方式发送和接收消息并将此工作流程与您自己的系统集成(客户关系管理、客户服务等).

The WhatsApp Business API Client supports a subset of the features provided by the WhatsApp applications you already know from Android, iOS, Web and other platforms including end-to-end encryption. The difference is that this application can be deployed on a server, providing a local API that allows you to programmatically send and receive messages and integrate this workflow with your own systems (CRMs, customer care, etc.).

因此,在 Business API 中,也可以向群组发送消息.您可以查看此处.以下是发送群消息的示例命令:

So in Business API its possible to send messages to the group also. You can check here. The following are the sample command for sending group message :

POST /v1/messages   
{
    "preview_url": false | true,
    "recipient_type": "group",
    "to": "whatsapp-group-id",
    "render_mentions": true | false,
    "type": "text",
    "text": {
        "body": "your-text-message-content"
    }
}

这篇关于如何使用官方 API 在 WhatsApp 群组上发送消息的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆