BaleMessenger icon

BaleMessenger

Interact with Bale Messenger API

Overview

The node interacts with the Bale Messenger API to perform various chat-related operations. Specifically, for the Chat - Set Chat Photo operation, it allows setting a new profile photo for a group, supergroup, or channel by uploading an image from binary data.

This operation is useful when you want to programmatically update the chat's profile picture, for example:

  • Automatically updating a group photo based on events or campaigns.
  • Setting a default photo when creating new groups via automation.
  • Changing the chat photo periodically for branding or thematic purposes.

Properties

Name Meaning
Chat ID Unique identifier for the target chat where the photo will be set.
Binary Property The name of the binary property in the input data that contains the photo file to upload.

Output

The output JSON contains a field set which indicates the result of the set chat photo operation. It typically reflects whether the photo was successfully updated.

Example output structure:

{
  "set": true
}

No binary output is produced by this operation.

Dependencies

  • Requires an active Bale Messenger API authentication token (provided via credentials).
  • The photo must be provided as binary data in the specified binary property of the input item.
  • Uses the Bale Messenger API endpoint to set the chat photo.

Troubleshooting

  • Missing or incorrect Chat ID: Ensure the Chat ID is valid and corresponds to a chat where the bot has permission to change the photo.
  • Binary data issues: The binary property must contain valid image data. If the binary data is missing or corrupted, the operation will fail.
  • API errors: Errors returned from the Bale Messenger API may indicate permission issues, invalid file format, or size limits. Check the error message details for guidance.
  • Credential problems: Make sure the API token credential is correctly configured and has sufficient permissions.

Links and References

  • Bale Messenger API Documentation (official API base URL referenced in code)
  • Bale Messenger Bot API general usage guides (not linked here due to lack of direct URLs in source)

Discussion