Press Ticket icon

Press Ticket

Interage com a API do Press Ticket®

Grupos WhatsApp → Config. Modo Anúncio

AI-generated

Overview

This node operation allows configuring the announcement mode of a WhatsApp group via the Press Ticket API. Specifically, it enables or disables the setting that restricts message sending in the group to only admins, effectively setting the group to announcement mode. This is useful for managing group communication where only admins should post messages, such as official announcements or broadcast groups.

Use Case Examples

  1. Enable announcement mode in a WhatsApp group to allow only admins to send messages.
  2. Disable announcement mode to allow all group members to send messages.

Properties

Name Meaning
ID do Grupo The unique identifier of the WhatsApp group to configure (e.g., 120363...@g.us). This is required to specify which group the announcement mode setting applies to.
Habilitado Boolean flag to enable (true) or disable (false) the announcement mode setting in the group, controlling whether only admins can send messages.

Output

JSON

  • enabled - Indicates if the announcement mode is enabled or disabled.
  • groupId - The ID of the group for which the announcement mode was configured.
  • success - Indicates if the API call to set the announcement mode was successful.

Dependencies

  • Press Ticket API with an API token for authentication

Troubleshooting

  • Ensure the group ID is correct and the bot has admin privileges in the group to change settings.
  • Check that the API token is valid and has permissions to modify group settings.
  • If the API call fails, verify network connectivity and API endpoint availability.

Links

Discussion