WAHA

Connect with Whatsapp HTTP API

Actions116

Overview

This node operation sets a profile picture for a user session. It is useful in scenarios where you want to programmatically update or change the profile image associated with a user account or session, such as in social media management, user profile customization, or automated account setup workflows. For example, you can use this node to upload a new profile picture from a URL or local file to a user's profile in an automated process.

Use Case Examples

  1. Automatically update a user's profile picture based on an external image URL.
  2. Batch update profile pictures for multiple user sessions in a workflow.

Properties

Name Meaning
Session The name of the user session for which the profile picture will be set.
File The image file to be used as the profile picture, including its MIME type, filename, and URL.
Request Options Optional settings for the request such as batching, SSL certificate validation, proxy configuration, and timeout settings.

Output

JSON

  • success - Indicates whether the profile picture was successfully set.
  • profilePictureUrl - The URL of the newly set profile picture.
  • session - The session name for which the profile picture was updated.

Dependencies

  • Requires an API key or authentication token to access the user session and update the profile picture.

Troubleshooting

  • Ensure the session name is correct and active; otherwise, the profile picture update will fail.
  • Verify the file object contains a valid URL and correct MIME type for the image.
  • If using batching, check batch size and interval settings to avoid request throttling issues.
  • If SSL errors occur, consider enabling 'Ignore SSL Issues' but be aware of security risks.
  • Check proxy settings if behind a corporate firewall or proxy server.
  • Timeout errors may require increasing the timeout value in request options.

Discussion