BaleMessenger icon

BaleMessenger

Interact with Bale Messenger API

Overview

The "Copy Message" operation of the BaleMessenger node allows users to copy a message from one chat to another within the Bale Messenger platform. This is useful when you want to duplicate or replicate an existing message in a different chat without manually recreating its content.

Common scenarios include:

  • Forwarding important announcements or notifications to multiple chats by copying the original message.
  • Duplicating messages for backup or archival purposes.
  • Automating message distribution workflows where the same message needs to be sent to various groups or channels.

For example, if you have a message in Chat A that you want to share with Chat B, you can use this operation to copy the message by specifying the source chat ID, the target chat ID, and the message ID of the original message.

Properties

Name Meaning
Chat ID Unique identifier for the target chat where the message will be copied to.
From Chat ID Unique identifier for the chat where the original message was sent (source chat).
Message ID Unique identifier of the message to copy from the source chat.

Output

The output JSON contains the result of the copy operation. Specifically, it returns:

  • messageId: The unique identifier of the newly copied message in the target chat.

This allows subsequent nodes or workflows to reference the copied message directly.

No binary data is output by this operation.

Example output JSON:

{
  "messageId": 123456789
}

Dependencies

  • Requires an active Bale Messenger API authentication token configured in the node credentials.
  • Uses the official Bale Messenger Bot API endpoint (https://tapi.bale.ai/bot).
  • Relies on the node-telegram-bot-api library internally for API interactions.

Troubleshooting

  • Invalid Chat IDs or Message ID: If the provided chat IDs or message ID are incorrect or do not exist, the API call will fail. Verify that the IDs correspond to valid chats and messages accessible by your bot.
  • Insufficient Permissions: The bot must have permission to read messages in the source chat and send messages in the target chat. Lack of permissions will cause errors.
  • API Errors: Network issues or API rate limits may cause failures. Check error messages returned by the API for details.
  • Missing Required Parameters: Ensure all required fields (chatId, fromChatId, messageId) are provided; otherwise, the node will throw an error.

Links and References

Discussion