set_group_locked
Toggle locked mode on a WhatsApp group to restrict name, topic, and icon edits to admins only. Reversible by calling again with the inverse value.
Instructions
Toggle locked mode on a group; when enabled, only admins can change name/topic/icon and members see a system message about the change. Reversible by calling again with the inverse value. Prerequisite: admin. See set_group_announce for restricting who can post. Returns the plain-text string Group <chat_jid> locked=<bool>.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chat_jid | Yes | WhatsApp JID: individual as `<digits>@s.whatsapp.net` or bare phone digits, group as `<digits>-<timestamp>@g.us` | |
| locked | Yes | true to restrict subject/topic/icon edits to admins, false to allow all members |