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 its identifiers.

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

  • Monitoring or logging messages in a chat.
  • Triggering workflows based on message content or metadata.
  • Integrating Telegram message data into other systems or databases.

For example, you can use this node to get the content and metadata of a particular message by specifying the chat ID and message ID, then process or analyze that data further in your workflow.

Properties

Name Meaning
Chat ID The unique identifier of the chat where the message resides. Required to specify context.
Message ID The unique identifier of the message within the specified chat. Required to identify the exact 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 available metadata and content fields of the message, such as sender info, message text, media attachments, timestamps, and more.

No binary data output is indicated for this operation.

Dependencies

  • Requires an active Telegram API authentication credential (an API key and associated login).
  • Depends on the TelePilotNodeConnectionManager to manage Telegram client sessions.
  • The node requires prior successful login/authentication to Telegram; otherwise, it will throw errors prompting re-login.
  • Network access to Telegram's API endpoints is necessary.

Troubleshooting

  • Error: "Session was closed or terminated. Please login again"
    This indicates the Telegram client session has expired or been closed. Resolve by re-authenticating using the login flow described at https://telepilot.co/login-howto.

  • Error: "Please login"
    Occurs if the node attempts to perform actions without an active authenticated session. Use the login commands or nodes to establish a session first.

  • Invalid Chat ID or Message ID
    If the provided IDs are incorrect or do not exist, the Telegram API may return errors or empty results. Verify IDs before running the node.

  • Network or API connectivity issues
    Ensure stable internet connection and valid credentials.

Links and References

Discussion