Actions32
- Bot Actions
- Callback Actions
- Chat Actions
- File Actions
- Message Actions
- Payment Actions
- Sticker Actions
Overview
The "Add Sticker To Set" operation in the Sticker resource allows users to add a new sticker to an existing sticker set on the Bale Messenger platform. This node is useful when you want to programmatically expand your sticker collections by uploading new stickers associated with a user and a specific sticker set name.
Typical use cases include:
- Automating the management of custom sticker sets for chatbots or messaging apps.
- Enabling users to contribute new stickers to their personal or shared sticker sets.
- Integrating sticker uploads into workflows that manage media content dynamically.
For example, a chatbot could allow users to upload images which are then converted and added as stickers to a predefined sticker set, enhancing user engagement with personalized content.
Properties
Name | Meaning |
---|---|
UserId | The unique identifier of the user who owns the sticker set. |
Name | The name of the existing sticker set to which the sticker will be added. |
Binary Property | The name of the binary property in the input data that contains the sticker file data to upload. |
Output
The output JSON contains the response from the Bale Messenger API after attempting to add the sticker to the set. It typically includes success status and any relevant metadata returned by the API about the newly added sticker.
The node does not output binary data for this operation; it only returns JSON data representing the API response.
Example output structure (simplified):
{
"ok": true,
"result": {
// details about the added sticker
}
}
Dependencies
- Requires an active Bale Messenger API credential with a valid authentication token.
- The node uses the
node-telegram-bot-api
library configured to communicate with Bale Messenger's API endpoint. - Input data must contain the binary sticker file under the specified binary property name.
Troubleshooting
- Invalid UserId or Sticker Set Name: If the user ID or sticker set name is incorrect or does not exist, the API call will fail. Verify these inputs before execution.
- Missing or Incorrect Binary Data: The binary property must contain valid sticker file data. Ensure the binary data is correctly attached to the input item and the property name matches.
- API Errors: Network issues or invalid credentials can cause failures. Check the API token validity and network connectivity.
- Error Messages: The node logs errors such as "Failed to add new sticker to set" along with API error details. Review these logs to identify issues like permission problems or invalid file formats.
Links and References
- Bale Messenger API Documentation (official API reference)
- node-telegram-bot-api GitHub Repository (used library for API calls)
This summary focuses exclusively on the "Add Sticker To Set" operation within the Sticker resource based on static analysis of the provided source code and properties.