N8N Tools Telegram icon

N8N Tools Telegram

Interact with Telegram Bot API

Overview

This node integrates with the Telegram Bot API to perform various file-related operations, specifically including managing sticker sets. The "Delete Sticker From Set" operation allows users to remove a specific sticker from an existing sticker set on Telegram.

Common scenarios where this node is beneficial include:

  • Managing and maintaining custom sticker sets for Telegram bots.
  • Automating the removal of outdated or unwanted stickers from a sticker set.
  • Integrating Telegram sticker management into broader workflows, such as content moderation or bot customization.

For example, a bot administrator could use this node to programmatically delete a sticker from a set when it no longer fits the theme or violates guidelines, without manual intervention in the Telegram app.

Properties

Name Meaning
Options Additional options as a JSON object. This can be used to pass extra parameters if needed.

Note: For the "Delete Sticker From Set" operation under the "Files" resource, the key input property is:

Name Meaning
sticker The identifier of the sticker to delete from the set. Typically a file ID or unique sticker identifier.

The provided properties JSON only shows the generic "Options" property, but the code indicates that the "sticker" parameter is required for deleting a sticker from a set.

Output

The output is a JSON object representing the response from the Telegram Bot API after attempting to delete the specified sticker from the set. It typically contains a success confirmation or error details.

No binary data output is involved in this operation.

Example output structure (simplified):

{
  "ok": true,
  "result": true
}

Where "ok" indicates the API call success status, and "result" confirms the deletion action.

Dependencies

  • Requires an active Telegram Bot API token (provided via credentials).
  • Requires access to the N8N Tools API for subscription validation and API key authentication.
  • The node uses HTTP requests to communicate with both the N8N Tools API and the Telegram Bot API.
  • Proper configuration of credentials in n8n is necessary, including:
    • An API key credential for the N8N Tools API.
    • A Telegram Bot API token credential.

Troubleshooting

  • Invalid Subscription or API Key: If the node throws an error about invalid subscription or API key, verify that the API key credential for the N8N Tools API is correct and active.
  • Unknown Operation Error: If the operation name is incorrect or unsupported, the node will throw an "Unknown operation" error. Ensure the operation is exactly "deleteStickerFromSet" under the "files" resource.
  • Missing Sticker Parameter: If the "sticker" parameter is not provided or invalid, the Telegram API will return an error. Make sure to specify the correct sticker identifier.
  • API Rate Limits: Frequent calls to the Telegram API may hit rate limits; handle errors accordingly and consider adding delays or retries.
  • Network Issues: Connectivity problems can cause HTTP request failures; check network settings and proxy configurations if applicable.

Links and References


This summary focuses on the "Delete Sticker From Set" operation within the "Files" resource of the node, based on static analysis of the provided source code and properties.

Discussion