Actions40
- Chat Actions
- Custom Request Actions
- Group Actions
- File Actions
- Login Actions
- Message Actions
- User Actions
- Contact Actions
Overview
This node integrates with Telegram via the TelePilot API, allowing users to perform various Telegram operations programmatically. It supports actions such as logging in, managing chats, sending messages (text, audio, video, files, photos), retrieving chat history, managing contacts, and handling groups. This node is beneficial for automating Telegram interactions, such as fetching chat lists, sending automated messages, or managing Telegram sessions within workflows.
Use Case Examples
- Automatically retrieve a list of all Telegram chats for monitoring or reporting.
- Send a message or media file to a specific Telegram chat as part of an automated notification system.
- Manage Telegram sessions by logging in or closing sessions programmatically.
Properties
| Name | Meaning |
|---|---|
| resource | The Telegram resource to operate on, e.g., Chat, User, Message, etc. |
| operation | The specific action to perform on the selected resource, e.g., Get Chats, Send Message, etc. |
Output
JSON
- `` - Array of results from the Telegram API call, typically containing chat objects or operation responses.
Dependencies
- Requires an API key credential for TelePilot API authentication.
Troubleshooting
- Common errors include session closure or unauthorized access, which require re-login via the login operation.
- Errors related to file handling (e.g., file not found, invalid file ID) may occur when sending media; ensure file paths and IDs are correct.
- Telegram API restrictions such as user restrictions on receiving messages can cause errors; adjust message type accordingly.
- If the node throws 'Please login' errors, ensure the login operation is completed successfully before other operations.
Links
- TelePilot Login Guide - Instructions for logging in and managing Telegram sessions with TelePilot.