Actions26
- 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.
Typical use cases include:
- Automatically creating a new Telegram supergroup for event participants.
- Setting up a broadcast channel for announcements.
- Creating themed discussion groups as part of a workflow.
Properties
| Name | Meaning |
|---|---|
| Title | The title/name of the new supergroup 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 (false). |
Output
The node outputs an array of JSON objects representing the response from the Telegram API after creating the supergroup or channel. This typically includes details about the newly created chat such as its unique identifier, type (supergroup or channel), title, description, and other metadata.
No binary data output is produced by this operation.
Dependencies
- Requires an active Telegram API credential with appropriate permissions (API ID, API hash, phone number).
- Depends on the TelePilot Node Connection Manager to handle Telegram client sessions and API calls.
- The user must be logged in via the login flow provided by the node (e.g., using phone number authentication).
Troubleshooting
- Session Not Logged In: If the Telegram session is not authenticated, the node will throw errors prompting to log in again. Use the login commands or nodes to authenticate before creating chats.
- Unauthorized Errors: These indicate expired or invalid credentials; re-authentication is required.
- "A closed client cannot be reused" Error: Means the Telegram client session was closed unexpectedly. Marked internally and requires a fresh login.
- Input Validation: Ensure the
Titleis provided and non-empty. TheDescriptionshould not exceed 255 characters. - API Limits: Creating too many supergroups or channels in a short time may hit Telegram limits; handle rate limiting accordingly.
Links and References
- Telegram Bots API
- TelePilot Documentation — for login and usage instructions
- Telegram Supergroups and Channels — official Telegram info on these chat types