Actions101
- 🖥️ Sessions Actions
- 🔑 Auth Actions
- 🖼️ Screenshot Actions
- 📤 Chatting Actions
- 📢 Channels Actions
- 🟢 Status Actions
- 💬 Chats Actions
- 👤 Contacts Actions
- 👥 Groups Actions
- ✅ Presence Actions
- 🏷️ Labels Actions
- 🔍 Observability Actions
👥 Groups → Set Messages Admin Only
AI-generatedOverview
This node operation sets the message sending permissions in a WhatsApp group to 'Admins Only'. It is useful for group administrators who want to restrict message sending to only admins, preventing other members from sending messages. For example, a community manager can use this to control announcements in a large group by allowing only admins to post messages.
Use Case Examples
- Restrict messages in a group to admins only to maintain order and prevent spam.
- Temporarily set a group to admin-only messaging during important announcements.
Properties
| Name | Meaning |
|---|---|
| Session | The session name to identify the WhatsApp session to use for the operation. |
| Id | The unique identifier of the WhatsApp group where the message permissions will be set. |
| Admins Only | Boolean flag to enable or disable the 'Admins Only' message sending restriction in the group. |
Output
JSON
success- Indicates if the operation to set message permissions was successful.groupId- The ID of the group where the setting was applied.adminsOnly- The final state of the 'Admins Only' setting after the operation.
Dependencies
- Requires a valid WhatsApp session authentication to perform group management operations.
Troubleshooting
- Ensure the session name corresponds to an active and authenticated WhatsApp session.
- Verify the group ID is correct and the user has admin privileges in the group.
- If the operation fails, check network connectivity and proxy settings if used.
- Timeouts may occur if the WhatsApp service is slow or unresponsive; adjust timeout settings accordingly.