Green API icon

Green API

Send WhatsApp messages via Green API

Group → Set Group Picture

AI-generated

Overview

This node operation sets a picture for a specified WhatsApp group using the Green API. It allows users to upload a JPG image either from a file path or from binary data input to update the group's picture. This is useful for managing group identity and branding in WhatsApp groups programmatically.

Use Case Examples

  1. Updating the group picture to a new image stored locally on the system.
  2. Setting a group picture using an image received as binary data from a previous node in the workflow.

Properties

Name Meaning
Group ID The unique identifier of the WhatsApp group on which the picture will be set.
Group Image The file path to the JPG image that will be used as the new group picture.

Output

JSON

  • response - The JSON response from the Green API after attempting to set the group picture, indicating success or failure.

Dependencies

  • Requires Green API credentials including instance ID and API token for authentication.

Troubleshooting

  • Ensure the Group ID is correctly formatted and corresponds to an existing WhatsApp group.
  • Verify the image file path is correct and the file is accessible and in JPG format.
  • Check that the Green API credentials (instance ID and API token) are valid and have the necessary permissions.
  • Common errors include file read failures and API request failures, which provide error messages indicating the cause.

Links

Discussion