> For the complete documentation index, see [llms.txt](https://support.whapi.cloud/help-desk/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.whapi.cloud/help-desk/communities/send-comment-to-whatsapp-community-announcement.md).

# 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](https://support.whapi.cloud/help-desk/communities/send-announcement.md), 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](https://whapi.readme.io/reference/getmessages) or [Get messages by chat ID](https://whapi.readme.io/reference/getmessagesbychatid) 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](https://support.whapi.cloud/help-desk/communities/introduction.md#how-to-find-the-correct-announcements-group).

#### Example request

```bash
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.

### Example response

HTTP 200

```json
{
  "sent": true,
  "message": {
    "id": "EXAMPLE_COMMENT_MESSAGE_ID",
    "from_me": true,
    "type": "action",
    "timestamp": 1793948168,
    "source": "api",
    "device_id": 74,
    "starred": false,
    "chat_id": "120363000000000000@g.us",
    "from": "15551234567",
    "status": "pending",
    "action": {
      "target": "A7mK2pQ9vD4xR6tN8sF1cH5jL3wB0eY",
      "type": "comment",
      "comment": "Thank you for the update. We will review the details."
    }
  }
}
```

### Receiving comments

See the [incoming webhook example](https://support.whapi.cloud/help-desk/receiving/webhooks/incoming-webhooks-format/incoming-message.md#incoming-comment-on-a-community-announcement).
