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, allowing users to perform various operations related to messages, chats, bots, files, inline queries, callback queries, and updates. Specifically, for the Messages resource and Send Sticker operation, this node sends a sticker message to a specified Telegram chat.

This is useful in scenarios where automated workflows need to send stickers as part of notifications, user engagement, or interactive bot responses on Telegram. For example, a chatbot could send a celebratory sticker when a user completes a task or trigger a sticker response based on certain events.

Properties

Name Meaning
Chat ID The unique identifier for the target Telegram chat where the sticker will be sent.
Sticker Data JSON object containing the Telegram sticker data to send. This typically includes the sticker file ID or other relevant parameters as defined by the Telegram Bot API.

Output

The node outputs an array of JSON objects, each representing the response from the Telegram Bot API for the executed operation. For the Send Sticker operation, the output JSON contains the result of sending the sticker message, which usually includes details about the sent message such as message ID, date, chat info, and the sticker metadata.

If the operation fails and "Continue On Fail" is enabled, the output JSON will contain an error message describing the failure.

The node does not explicitly handle binary data output for this operation.

Dependencies

  • Requires an active Telegram Bot API token (provided 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 HTTP requests to communicate with both the N8N Tools API and the 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 parameter is set correctly to "sendSticker" when sending stickers.
  • Malformed Sticker Data: The "Sticker Data" property must be a valid JSON string matching Telegram's expected format. Invalid JSON or missing required fields can cause errors.
  • Chat ID issues: Make sure the Chat ID is correct and the bot has permission to send messages to that chat.
  • Network or API errors: Check network connectivity and Telegram Bot API status if requests fail unexpectedly.

Links and References

Discussion