gpt4 book ai didi

whatsapp - 如何使用官方 API 在 WhatsApp Group 上发送消息

转载 作者:行者123 更新时间:2023-12-02 21:49:48 28 4
gpt4 key购买 nike

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

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

但是,如果用户加入该群组,有什么方法可以向 WhatsApp 群组发送消息吗?我有一个表单,希望点击此表单数据即可在我们的 Whatsapp 群组中共享。

最佳答案

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 中,也可以向群组发送消息。您可以查看here 。以下是发送群组消息的示例命令:

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"
}
}

关于whatsapp - 如何使用官方 API 在 WhatsApp Group 上发送消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50189793/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com