Send announcement
How to send a message (announcement) to the community via API
To send a message (to post announcement) to a Community, you need to find out the exact ID of the group attached to that community.
Read more about it here: Important aspects of the API Community
Markers that you can use to automatically determine which group you need to use
Find a group that has your community ID in parameter
"linkedParent"
;Find a group that has the parameter
βannouncementsβ: true
;Find groups with the same name as your community, excluding the community ID you received in the response;
Send the announcement from your phone and see the
chat_id
in the webhook you receive.
Sending an announcement to a community is completely identical and follows the rules for sending a message to a group. To send this message, use this endpoint:
POST https://gate.whapi.cloud/messages/text
We wrote more about how to post to a group here: Send Group message
Last updated