Actions116
- š¬ Chats Actions
- š¤ Contacts Actions
- š„ļø Sessions Actions
- š Profile Actions
- š¼ļø Screenshot Actions
- š¤ Chatting Actions
- š¢ Channels Actions
- š¢ Status Actions
- š„ Groups Actions
- Add Participants
- Demote To Admin
- Create Group
- Get Groups
- Join Info Group
- Join Group
- Refresh Groups
- Get Group
- Delete Group
- Leave Group
- Get Chat Picture
- Set Picture
- Delete Picture
- Set Description
- Set Subject
- Set Info Admin Only
- Get Info Admin Only
- Set Messages Admin Only
- Get Messages Admin Only
- Get Invite Code
- Revoke Invite Code
- Get Participants
- Remove Participants
- Promote To Admin
- ā Presence Actions
- š·ļø Labels Actions
- š Observability Actions
- š Auth Actions
Overview
This node operation sets the message sending permissions in a WhatsApp group to be admin-only or not. It is useful for managing group communication by restricting message sending to group admins, which helps in controlling spam or maintaining order in large groups. For example, a community manager can use this to ensure only admins can post announcements in a group.
Use Case Examples
- Restrict messages in a group to admins only to prevent spam.
- Allow all members to send messages by disabling admin-only mode.
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 sending permissions will be set. |
| Admins Only | Boolean flag to enable or disable admin-only message sending in the group. |
| Request Options | Additional options for the request such as batching, SSL certificate handling, proxy settings, and timeout configuration. |
Output
JSON
success- Indicates if the operation to set admin-only message permissions was successful.groupId- The ID of the group where the setting was applied.adminsOnly- The final state of the admin-only message setting after the operation.
Dependencies
- Requires a valid WhatsApp session identified by the session name to interact with the WhatsApp API.
Troubleshooting
- Ensure the session name corresponds to an active and authenticated WhatsApp session.
- Verify the group ID is correct and the bot or user has admin privileges in the group to change settings.
- If the operation fails, check network connectivity and proxy settings if used.
- Timeout errors may occur if the server is slow to respond; increase the timeout setting if needed.