Telegram Multi icon

Telegram Multi

Send messages and interact with multiple Telegram bots

Actions7

Chat → Get

AI-generated

Overview

This node operation retrieves information about a specific Telegram chat. It is useful for scenarios where you need to fetch details about a chat, such as its title, type, or other metadata, by providing the chat ID or username. For example, it can be used to get information about a channel, group, or individual chat in Telegram.

Use Case Examples

  1. Fetch chat details for a Telegram channel by providing its username.
  2. Retrieve metadata of a group chat using its chat ID.

Properties

Name Meaning
Authentication Method Choose how to provide the bot token for authenticating with the Telegram API. Options include encrypted credentials stored in n8n, environment variable, or direct input (not recommended for production).
Environment Token Environment variable containing the bot token, used if the authentication method is set to environment.
Bot Token Bot token from @BotFather, used if the authentication method is set to direct input (not secure for production).
Chat ID Chat ID, username (@channel) or group ID (-123456789) to identify the chat to get information about.
Additional Fields Optional fields to customize the request, such as parse mode, caption, disabling web page preview, disabling notification, or replying to a specific message ID.

Output

JSON

  • json - The JSON output contains the chat information retrieved from Telegram, including details such as chat title, type, and other metadata.

Dependencies

  • Telegram Bot API token (bot token)

Troubleshooting

  • Ensure the bot token is valid and correctly formatted; invalid tokens will cause errors.
  • Make sure the chat ID or username is correct and accessible by the bot; otherwise, the API call will fail.
  • If using environment variables for the token, verify the environment variable is set properly in n8n.
  • Common error messages include 'Invalid bot token format' and 'Bot token is required', which indicate authentication issues.

Links

Discussion