N8N Tools Telegram icon

N8N Tools Telegram

Interact with Telegram Bot API

Overview

The node "N8N Tools Telegram" enables interaction with the Telegram Bot API, specifically supporting various Telegram resources and operations. For the Files resource with the Get Sticker Set operation, this node retrieves detailed information about a specific sticker set by its name.

This is useful when you want to programmatically access metadata and details of a sticker set in Telegram, for example, to display available stickers, verify sticker sets, or manage them within an automated workflow.

Practical examples:

  • Fetching sticker set details to show available stickers in a chat bot.
  • Validating sticker sets before adding new stickers.
  • Integrating Telegram sticker data into other applications or databases.

Properties

Name Meaning
Options Additional options as a JSON object (optional).

Note: The provided input properties JSON only includes the "Options" property for the Files resource and related operations. However, the code shows that the Get Sticker Set operation requires a name parameter (the sticker set name) which is used to identify the sticker set to retrieve.

From the source code, for the Get Sticker Set operation under the Files resource, the following input property is expected:

Name Meaning
name The name of the sticker set to retrieve

Since this property was not included in the user-provided JSON but is clearly required by the code (this.getNodeParameter("name", e)), it should be considered a mandatory input.

Output

The output is a JSON object containing the detailed information about the requested sticker set as returned by the Telegram Bot API. This typically includes metadata such as:

  • Sticker set name
  • Title
  • Stickers array with individual sticker details
  • Thumbnail information (if any)
  • Other relevant sticker set attributes

The node outputs one item per input, pairing the result with the corresponding input item.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active Telegram Bot API token configured via credentials.
  • Requires a valid subscription and API key for the "N8N Tools API" service, which validates usage before forwarding requests to Telegram.
  • The node uses the external "N8nToolsApi" service endpoint for validation.
  • Network access to Telegram Bot API endpoints.

Troubleshooting

  • Invalid subscription or API key error: If the node throws an error indicating invalid subscription or API key, verify that the API key credential is correctly configured and active.
  • Unknown operation error: Ensure the operation name is exactly "getStickerSet" for the Files resource.
  • Missing required parameters: The "name" of the sticker set must be provided; otherwise, the request will fail.
  • HTTP request failures: Network issues or Telegram API downtime can cause errors; check connectivity and Telegram status.
  • JSON parsing errors: Input properties like "options" must be valid JSON if used.

Links and References

Discussion