N8N Tools Telegram icon

N8N Tools Telegram

Interact with Telegram Bot API

Overview

This node integrates with the Telegram Bot API to perform various chat-related operations. Specifically, for the "Delete Chat Sticker Set" operation under the "Chats" resource, it allows users to remove the sticker set associated with a particular Telegram chat. This can be useful in scenarios where a chat's sticker set is no longer relevant or needs to be reset.

Practical examples include:

  • Automatically cleaning up or resetting sticker sets in group chats after an event.
  • Managing sticker sets dynamically based on chat activity or administrative decisions.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat where the sticker set will be deleted. This is required.
Options Additional optional parameters as a JSON object (not specifically used in this operation but available for other chat operations).

Output

The node outputs a JSON object representing the response from the Telegram Bot API for the delete chat sticker set request. This typically includes a boolean indicating success or failure of the operation.

Example output structure:

{
  "ok": true,
  "result": true
}
  • ok: Indicates if the API call was successful.
  • result: Usually a boolean confirming the deletion of the sticker set.

No binary data output is involved in this operation.

Dependencies

  • Requires an active Telegram Bot API token credential configured in n8n.
  • Requires a valid subscription and API key for the external "N8N Tools API" service, which validates usage before forwarding requests to Telegram.
  • The node uses HTTP POST requests to the Telegram API endpoints via the helper class managing Telegram API calls.

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 external validation service 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 "deleteChatStickerSet" when using the "Chats" resource.
  • Telegram API Errors: Errors returned by Telegram (e.g., chat not found, insufficient permissions) will be passed through. Check that the bot has appropriate admin rights in the target chat to delete the sticker set.
  • Missing Required Parameters: The "Chat ID" must be provided; otherwise, the node will fail.

Links and References

Discussion