Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

The node "Telegram CoPilot" provides a comprehensive interface to interact with Telegram via its API, enabling automation of various Telegram operations. Specifically, for the Message resource and the Get Messages operation, it retrieves detailed information about a specific message in a chat by using the chat ID and message ID.

This node is beneficial in scenarios where you want to programmatically fetch message details from Telegram chats, such as:

  • Monitoring messages in a support or community chat.
  • Extracting message content for logging or analysis.
  • Triggering workflows based on specific message contents or metadata.

Example use case: Automatically retrieve a message's details when a new message arrives in a Telegram group, then process or store that data elsewhere.

Properties

Name Meaning
Chat ID The unique identifier of the chat where the message resides. Example: "122323".
Message ID The unique identifier of the message within the specified chat. Example: "12345678".

These properties are required inputs to specify exactly which message to retrieve.

Output

The output is a JSON array containing the full details of the requested message object as returned by the Telegram API. This includes all metadata and content fields associated with the message, such as sender info, timestamp, message text, media attachments, and more.

No binary data output is indicated for this operation.

Dependencies

  • Requires an API key credential for authenticating with the Telegram API.
  • Uses an internal connection manager to handle Telegram client sessions.
  • Requires proper login/authentication flow to be completed before performing message retrieval.
  • The node depends on the TelePilot API wrapper and related libraries bundled internally.

Troubleshooting

  • Common issues:

    • Attempting to get a message without being logged in will result in errors prompting re-login.
    • Using invalid or expired chat or message IDs will cause the Telegram API to return errors.
    • Session closure or termination requires re-authentication; users must follow the login instructions.
  • Error messages:

    • "Session was closed or terminated. Please login again: https://telepilot.co/login-howto"
      Means the Telegram session is no longer active; re-login is needed.
    • "Please login: https://telepilot.co/login-howto"
      Indicates unauthorized access due to missing or invalid authentication.
    • Unexpected auth states or commands during login will prompt guidance messages or help links.

Links and References

Discussion