WAHA icon

WAHA

Connect with Whatsapp HTTP API

Overview

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

  1. Restrict messages in a group to admins only to maintain order and prevent spam.
  2. 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.

Discussion