N8N Tools Telegram icon

N8N Tools Telegram

Interact with Telegram Bot API

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

Discussion