Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Grupos WhatsApp → Rebaixar Admin

AI-generated

Overview

This node interacts with the Press Ticket® API to manage WhatsApp groups, specifically to demote administrators to regular participants in a WhatsApp group. It is useful for automating group management tasks such as adjusting participant roles within WhatsApp groups. For example, it can be used to programmatically demote one or more group admins to regular members based on certain conditions or workflows.

Use Case Examples

  1. Demote specific administrators in a WhatsApp group to regular participants by providing the group ID and the list of participant numbers to be demoted.
  2. Automate the management of WhatsApp group roles in customer support or community groups by demoting admins when necessary.

Properties

Name Meaning
ID do Grupo The unique identifier of the WhatsApp group where the admin demotion will occur. Example format: 120363...@g.us.
Participantes Comma-separated list of participant phone numbers to be demoted from admin to regular participant in the group. Example: 5511999999999,5511888888888.

Output

JSON

  • success - Indicates if the demotion operation was successful.
  • groupId - The ID of the WhatsApp group where the operation was performed.
  • participants - List of participants who were demoted from admin status.
  • error - Error message if the operation failed.

Dependencies

  • Press Ticket® API with an API token credential

Troubleshooting

  • Ensure the provided group ID is valid and the bot or API user has the necessary permissions to modify group participants.
  • Verify that the participant numbers are correctly formatted and exist in the group.
  • Common errors include authentication failures due to invalid API tokens, or permission errors if the user lacks admin rights in the group.
  • If binary data is required (e.g., for setting group pictures), ensure the binary property name matches the input data.

Discussion