Actions27
- Chat Actions
- File Actions
- Group Actions
- Message Actions
- User Actions
Overview
This node integrates with Telegram via the TelePilot API, enabling automation of various Telegram actions. Specifically, for the Chat resource and the Create SuperGroup or Channel operation, it allows users to create a new supergroup chat or channel on Telegram. This is useful for automating community management, broadcasting messages, or setting up discussion groups programmatically.
Practical examples include:
- Automatically creating a new Telegram channel for announcements when a new project starts.
- Setting up a supergroup chat for team collaboration triggered by an external event.
- Creating channels or supergroups as part of onboarding workflows.
Properties
| Name | Meaning |
|---|---|
| Title | The title/name of the new supergroup chat or channel to be created. |
| Description | A short description of the chat or channel (0-255 characters). |
| Is Channel? | Boolean flag indicating whether to create a channel (true) or a supergroup chat (false). |
Output
The node outputs a JSON array containing the response from the Telegram API after attempting to create the supergroup or channel. The structure typically includes details about the newly created chat or channel such as its unique identifier, type, title, and other metadata returned by Telegram.
No binary data output is involved in this operation.
Dependencies
- Requires an active Telegram API authentication credential (an API key/token) configured in n8n.
- Depends on the TelePilot Node Connection Manager to handle Telegram client sessions and API calls.
- The user must be logged in to Telegram through this node’s login mechanism before performing chat operations.
Troubleshooting
- Session Not Logged In: If the Telegram session is not authenticated, the node will throw errors prompting to log in first. Use the login operation with phone number and code to authenticate.
- Closed Client Error: If the client session was closed or terminated, the node suggests re-login to restore the session.
- Unauthorized Errors: These indicate invalid or expired credentials; re-authentication is required.
- Invalid Parameters: Ensure the
Titleis provided and theDescriptiondoes not exceed 255 characters. - API Limits or Restrictions: Telegram may impose limits on creating chats/channels; handle errors accordingly.
Links and References
- TelePilot Login Guide — Instructions for authenticating your Telegram account.
- Telegram Bots API Documentation — General reference for Telegram API capabilities (note: TelePilot uses TDLib, which differs but concepts overlap).
- TelePilot Official Site — For additional support and documentation.