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 "Chats" resource and the "Set Chat Sticker Set" operation, it allows you to assign a sticker set to a specific Telegram chat. This can be useful for customizing group chats or channels by setting a default sticker pack that members can use.

Practical examples include:

  • Automatically setting a themed sticker set for a new group chat.
  • Changing the sticker set of a channel based on events or promotions.
  • Managing sticker sets programmatically for multiple chats in bulk workflows.

Properties

Name Meaning
Chat ID The unique identifier for the target Telegram chat where the sticker set will be applied.
Options Additional optional parameters as a JSON object (not specifically used in this operation but available for extended options).

For this operation, an additional property is required but not listed in your provided properties JSON:

Name Meaning
Sticker Set Name The name of the sticker set to assign to the chat.

(Note: The "Sticker Set Name" parameter is required by the operation but was not included in the provided properties snippet; it is retrieved internally by the node.)

Output

The output is a JSON object representing the response from the Telegram Bot API after attempting to set the chat's sticker set. Typically, this will confirm success or provide error details if the operation failed.

The structure generally includes fields such as:

  • ok: Boolean indicating if the request was successful.
  • result: Usually true if the sticker set was successfully set.

No binary data is output by this operation.

Dependencies

  • Requires a valid Telegram Bot API token configured as credentials in n8n.
  • Requires access to the "N8N Tools API" service with a valid subscription and API key for validation before executing Telegram API calls.
  • 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: 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 spelled correctly and supported by the node.
  • Telegram API Errors: Errors returned from Telegram (e.g., invalid chat ID, sticker set name not found) will be passed through. Check that the chat ID exists and the sticker set name is valid and accessible by the bot.
  • Missing Required Parameters: Ensure all required parameters like Chat ID and Sticker Set Name are provided; missing these will cause errors.

Links and References


If you need details on other operations or resources, feel free to ask!

Discussion