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 including creating new sticker sets. The "Create New Sticker Set" operation allows users to create a new set of stickers associated with a Telegram user account. This is useful for bot developers or Telegram users who want to programmatically manage custom sticker sets via n8n workflows.
Practical examples include:
- Automating the creation of themed sticker packs for Telegram bots.
- Dynamically generating and publishing new sticker sets based on user input or external data.
- Managing sticker sets as part of larger Telegram bot automation workflows.
Properties
| Name | Meaning |
|---|---|
| User ID | Telegram User ID identifying the owner of the sticker set to be created. |
| Options | Additional optional parameters in JSON format to customize the sticker set creation request. |
Note: The provided properties JSON only lists "User ID" and "Options" explicitly for this operation, but the source code shows that other parameters are required for creating a sticker set (e.g., name, title, pngSticker, emojis). These must be configured in the node UI accordingly.
Output
The output is a JSON object representing the response from the Telegram Bot API after attempting to create a new sticker set. It typically includes details about the newly created sticker set or an error message if the operation failed.
No binary data output is indicated for this operation.
Dependencies
- Requires an active Telegram Bot API token credential to authenticate requests.
- Requires a subscription and valid API key for the "N8N Tools API" service, which validates usage before forwarding requests to Telegram.
- The node uses the "N8N Tools API" base URL and API key for validation before making Telegram API calls.
- No additional environment variables are explicitly required beyond these credentials.
Troubleshooting
- Invalid Subscription or API Key: If the N8N Tools API returns 401 or 403 errors during validation, check that your API key credential is correct and your subscription is active.
- Missing Required Parameters: The "createNewStickerSet" operation requires parameters such as userId, name, title, pngSticker, and emojis. Omitting any of these will cause errors.
- Telegram API Errors: Errors returned by Telegram (e.g., invalid user ID, invalid sticker format) will be passed through. Ensure all parameters conform to Telegram's API requirements.
- JSON Parsing Issues: The node expects some inputs as JSON strings (e.g., options). Invalid JSON syntax will cause parsing errors.
- Continue On Fail: If enabled, the node will return error messages per item instead of stopping execution.
Links and References
- Telegram Bot API - createNewStickerSet
- Telegram Stickers Documentation
- n8n Documentation
- N8N Tools API Service (for subscription and API key management)