Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node integrates with the Telegram API to perform various operations related to Telegram messages. Specifically, for the 'Message' resource and 'Get Messages' operation, it retrieves messages from a specified chat by their IDs or fetches message details. This node is useful for automating Telegram message management, such as fetching message content, links, or viewing messages programmatically. Practical examples include retrieving a specific message's content for processing or obtaining message links for sharing.

Use Case Examples

  1. Fetch a message by its ID from a specific chat to analyze its content.
  2. Retrieve message links to share or log them externally.
  3. Mark messages as read or view messages in bulk.

Properties

Name Meaning
Chat ID The identifier of the chat from which messages are to be retrieved. This is required to specify the chat context for message operations.
Message ID The identifier of the specific message to retrieve or operate on within the specified chat. Required for operations targeting individual messages.

Output

JSON

  • message_id - The unique identifier of the message retrieved.
  • chat_id - The identifier of the chat containing the message.
  • content - The content or details of the retrieved message, which may include text, media, or metadata.
  • message_link - If applicable, the URL link to the message.
  • view_status - Status information when messages are marked as viewed or read.

Dependencies

  • Requires an API key credential for Telegram API access.

Troubleshooting

  • Common errors include 'Please login' indicating the Telegram session is not authenticated; resolve by performing login via the ChatTrigger node or following the login guide.
  • Errors like 'A closed client cannot be reused' suggest the session was terminated; re-login is required.
  • File-related errors when sending media messages may occur if file paths are incorrect or files exceed Telegram's size limits.

Links

Discussion