Rahsaz Telegram icon

Rahsaz Telegram

Sends data to Telegram

Overview

The node interacts with the Telegram API to perform various chat-related operations. Specifically, for the Chat - Get operation, it retrieves up-to-date information about a specified chat by its unique identifier or channel username. This is useful when you want to fetch details such as chat type, title, description, or other metadata about a Telegram chat or channel.

Common scenarios include:

  • Fetching chat details before sending messages or performing administrative actions.
  • Verifying chat existence and properties in automation workflows.
  • Integrating Telegram chat data into other systems or dashboards.

Example: You can use this node to get information about a Telegram group or channel by providing its chat ID or username, then use that data to decide subsequent workflow steps.

Properties

Name Meaning
Chat ID Unique identifier for the target chat or username of the target channel (format: @channelusername).

This property is required for the "Get" operation on the Chat resource and specifies which chat's information to retrieve.

Output

The node outputs JSON data representing the chat information returned by the Telegram API. The structure typically includes fields such as:

  • id: Unique identifier of the chat.
  • type: Type of chat (private, group, supergroup, channel).
  • title: Title of the chat (for groups, channels).
  • username: Username of the chat (if available).
  • first_name, last_name: For private chats.
  • Other metadata like description, invite link, pinned message, permissions, etc.

The output is an array of JSON objects, each corresponding to one input item processed.

No binary data is produced for this operation.

Dependencies

  • Requires an active Telegram Bot API key credential configured in n8n.
  • Uses the Telegram Bot API endpoint getChat to fetch chat information.
  • No additional external dependencies beyond the Telegram API.

Troubleshooting

  • Invalid Chat ID or Username: If the provided chat identifier is incorrect or the bot does not have access to the chat, the API will return an error. Verify the chat ID or username format and ensure the bot is a member or admin of the chat.
  • Permission Errors: The bot must have appropriate permissions to access chat information. If denied, check the bot's role in the chat.
  • Network Issues: Connectivity problems may cause request failures. Ensure stable internet connection and valid API credentials.
  • Empty or Missing Output: Confirm that the input Chat ID is correctly set and that the chat exists.

Links and References

Discussion