Send comment to WhatsApp community announcement
How to reply to announcements
Whapi.Cloud allows you to add a comment to an existing announcement in a WhatsApp Community.
A comment is linked to a specific announcement message, so you need its Message ID before sending the request.
Send a comment
Use the following endpoint:
POST https://gate.whapi.cloud/messages/{MessageID}/comment
Replace {MessageID} with the ID of the Community announcement you want to comment on. You can retrieve the announcement ID, for example, using the Get messages or Get messages by chat ID request (by specifying the announcement group ID instead of the chat ID).
Check out the article to learn how to find the announcement group ID.
Example request
curl -X POST "https://gate.whapi.cloud/messages/A7mK2pQ9vD4xR6tN8sF1cH5jL3wB0eY/comment" \
-H "Authorization: Bearer <CHANNEL_TOKEN>" \
-H "Content-Type: application/json" \
-d '{
"body": "Thank you for the update. We will review the details."
}'Path parameter
MessageID— the ID of the Community announcement to which the comment will be added.
Request body
body— the text of the comment. It must be a non-empty string.
Last updated