WAHA icon

WAHA

Connect with Whatsapp HTTP API

Overview

This node operation promotes specified participants to admin status within a WhatsApp group. It is useful for managing group roles dynamically, such as elevating trusted members to admin for better group moderation. For example, a community manager can automate the promotion of active members to admin based on certain triggers.

Use Case Examples

  1. Promote a list of participants to admin in a group chat identified by its group ID.
  2. Automate admin role assignment in a WhatsApp group based on user activity or events.

Properties

Name Meaning
Session The session name used to authenticate and identify the WhatsApp session.
Id The unique identifier of the WhatsApp group where participants will be promoted to admin.
Participants A JSON array of participant objects specifying the users to be promoted to admin in the group.
Request Options Optional settings to control request behavior such as batching, SSL validation, proxy usage, and timeout settings.

Output

JSON

  • success - Indicates whether the promotion operation was successful.
  • promotedParticipants - List of participants who were successfully promoted to admin.
  • groupId - The ID of the group where the promotion took place.

Dependencies

  • Requires a valid WhatsApp session authentication to perform group admin promotions.

Troubleshooting

  • Ensure the session name is correct and active to avoid authentication errors.
  • Verify the group ID is valid and the bot or user has permission to promote participants in the group.
  • Participants must be valid WhatsApp user IDs; malformed or incorrect IDs will cause failures.
  • Batching settings should be configured carefully to avoid rate limiting or request timeouts.

Discussion