Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with Telegram via the TelePilot API, enabling automation of various Telegram messaging and chat management tasks. Specifically, for the Message resource with the Get Messages operation, it retrieves a specific message from a Telegram chat by its chat ID and message ID.

Common scenarios where this node is beneficial include:

  • Fetching details of a particular message in a chat for processing or logging.
  • Automating workflows that require reading message content or metadata before taking further actions.
  • Integrating Telegram message data into other systems or databases.

Practical example:

  • A workflow that triggers on new messages, then uses this node to fetch full message details (e.g., text, sender info) for sentiment analysis or customer support ticket creation.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat containing the message.
Message ID The unique identifier of the message within the specified chat to retrieve.

Output

The node outputs an array of JSON objects representing the Telegram message(s) retrieved. Each object contains detailed information about the message, including but not limited to:

  • Message content (text, media, etc.)
  • Sender information
  • Timestamps
  • Message metadata such as message type, reply status, etc.

No binary data output is associated with the "Get Messages" operation; the output is purely JSON structured data describing the message.

Dependencies

  • Requires a valid Telegram API authentication credential (an API key credential with necessary permissions).
  • Depends on the TelePilot Node Connection Manager to handle Telegram client sessions and API calls.
  • No additional external services are required beyond Telegram's API.

Troubleshooting

  • Error: "Please login" or "Unauthorized"
    This indicates the Telegram session is not authenticated or has expired. Resolve by performing the login process using the appropriate login nodes or commands as per the TelePilot guide.

  • Error: "A closed client cannot be reused"
    The Telegram client session was closed unexpectedly. Re-login is required to re-establish the session.

  • General API errors
    Network issues, invalid IDs, or permission restrictions may cause errors. Verify that the chat ID and message ID are correct and that the bot/user has access rights to the chat.

  • Continue On Fail option
    If enabled, the node will return error details in the output instead of stopping execution, allowing workflows to handle errors gracefully.

Links and References

Discussion