set_group_announce
Restrict group posting to admins only. When enabled, non-admin send attempts are rejected; call again to revert.
Instructions
Toggle announce-only mode on a group; when enabled, non-admin send attempts are rejected by WhatsApp servers and members see a system message about the change. Reversible by calling again with the inverse value. Prerequisite: admin. See set_group_locked for restricting metadata edits. Returns the plain-text string Group <chat_jid> announce_only=<bool>.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| announce_only | Yes | true to lock posting to admins only, false to allow all members to post | |
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` |