Actions72
- Messages Actions
- Bots Actions
- Updates Actions
- Chats Actions
- Get Chat
- Get Chat Administrators
- Get Chat Member
- Get Chat Member Count
- Leave Chat
- Set Chat Title
- Set Chat Description
- Set Chat Photo
- Delete Chat Photo
- Set Chat Permissions
- Export Chat Invite Link
- Create Chat Invite Link
- Edit Chat Invite Link
- Revoke Chat Invite Link
- Approve Chat Join Request
- Decline Chat Join Request
- Set Chat Administrator Custom Title
- Ban Chat Member
- Unban Chat Member
- Restrict Chat Member
- Promote Chat Member
- Set Chat Sticker Set
- Delete Chat Sticker Set
- Pin Chat Message
- Unpin Chat Message
- Unpin All Chat Messages
- Files Actions
- Inline Queries Actions
- Callback Queries Actions
Overview
The node integrates with the Telegram Bot API to perform various file-related operations, specifically under the "Files" resource. The "Add Sticker To Set" operation allows users to add a new sticker to an existing Telegram sticker set. This is useful for bot developers or administrators who want to programmatically manage and expand their sticker collections on Telegram.
Practical examples include:
- Automatically adding new custom stickers to a sticker set based on user input or external triggers.
- Managing sticker sets dynamically in response to events in other systems.
- Enabling bots to update sticker sets without manual intervention.
Properties
| Name | Meaning |
|---|---|
| User ID | Telegram User ID of the sticker set owner (the user who owns the sticker set). |
| Options | Additional options as a JSON object to customize the request. |
For the "Add Sticker To Set" operation, the following parameters are also used internally (not listed in your provided properties but required by the operation):
name(sticker set name)pngSticker(the sticker file in PNG format)emojis(associated emojis for the sticker)
These are typically required to specify which sticker set to add to, the sticker image, and its emoji tags.
Output
The node outputs a JSON object representing the response from the Telegram Bot API after attempting to add the sticker to the set. This response typically includes a boolean indicating success or failure and may contain error messages if the operation fails.
No binary data output is produced by this operation.
Example output structure (simplified):
{
"ok": true,
"result": true
}
Where "ok" indicates the API call status, and "result" confirms whether the sticker was successfully added.
Dependencies
- Requires an active Telegram Bot API token configured as credentials in n8n.
- Requires access to the N8N Tools API service for subscription validation, which needs an API key credential.
- The node uses HTTP requests to communicate with both the Telegram Bot API and the N8N Tools API.
Troubleshooting
- Invalid Subscription or API Key: If the N8N Tools API returns a 401 or 403 error during validation, the node will throw an error indicating invalid subscription or API key. Ensure that the API key credential is correct and active.
- Unknown Operation Error: If the operation parameter is incorrect or unsupported, the node throws an "Unknown operation" error. Verify that the operation is set to "addStickerToSet" when using the Files resource.
- Missing Required Parameters: The operation requires specific parameters such as user ID, sticker set name, PNG sticker file, and emojis. Missing or malformed inputs can cause API errors.
- Telegram API Errors: Errors returned from Telegram (e.g., invalid file format, sticker set not found) will be passed through. Check the error message for details and ensure compliance with Telegram's requirements.