Maytapi icon

Maytapi

Integrate with Maytapi WhatsApp Unofficial API

Group → Delete Profile Image

AI-generated

Overview

This node integrates with the Maytapi WhatsApp Unofficial API to manage WhatsApp groups and perform various group-related operations. Specifically, the "Delete Profile Image" operation under the "Group" resource allows users to delete the profile image of a WhatsApp group.

This operation is useful when you want to remove the current group picture, for example, if the group image is outdated or inappropriate, or if you want to reset the group profile image to no image.

Practical example:

  • A community manager wants to clear the group profile picture before uploading a new one.
  • An automated workflow that resets group images periodically for branding purposes.

Properties

Name Meaning
Phone ID Source Select how to provide the Phone ID: either "From Credentials" (uses stored credentials) or "Custom" (enter manually).
Phone ID The WhatsApp instance Phone ID, required if "Custom" Phone ID Source is selected.
Group ID The unique identifier of the WhatsApp group whose profile image will be deleted. It must include the @g.us suffix.

Output

The output is a JSON object representing the response from the Maytapi API after attempting to delete the group profile image. This typically includes success status and any relevant messages or error details returned by the API.

No binary data is output by this operation.

Example output structure:

{
  "success": true,
  "message": "Group profile image deleted successfully"
}

Dependencies

  • Requires an active Maytapi WhatsApp API account with valid API credentials (an API key credential).
  • The node requires the Phone ID of the WhatsApp instance, which can be provided via credentials or custom input.
  • Network access to the Maytapi API endpoint (https://api.maytapi.com/api) is necessary.

Troubleshooting

  • Missing Phone ID: If neither credentials nor custom Phone ID is provided, the node throws an error stating "Phone ID is required."
    • Solution: Provide the Phone ID either in credentials or select "Custom" and enter it manually.
  • Invalid Group ID: The Group ID must be correctly formatted with the @g.us suffix.
    • Solution: Verify the Group ID format.
  • API Errors: Any errors returned by the Maytapi API (e.g., unauthorized, not found) will be passed through in the JSON output.
    • Solution: Check API credentials, ensure the group exists, and verify permissions.
  • Network Issues: Failure to reach the Maytapi API endpoint will cause request failures.
    • Solution: Ensure network connectivity and correct API base URL configuration.

Links and References

Discussion