Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Overview

This node operation allows users to view specific messages in a Telegram chat by their message IDs. It is useful for scenarios where you want to mark messages as read or retrieve message details programmatically. For example, you can use it to confirm that certain messages have been seen or to fetch message content for further processing.

Use Case Examples

  1. Mark messages as read in a chat by specifying their IDs.
  2. Retrieve details of specific messages for logging or analysis.

Properties

Name Meaning
Chat ID The unique identifier of the chat containing the messages to view.
Message IDs Comma-separated list of message identifiers to be viewed or marked as read.
Force Read Boolean flag indicating whether to mark the specified messages as read even if the chat is closed.

Output

JSON

  • _ - Telegram API response object for the viewMessages operation, containing status and details of the viewed messages.

Dependencies

  • Requires an API key credential for Telegram via the telePilotApi credential.

Troubleshooting

  • Common errors include session closure or unauthorized access, which require re-login via the loginWithPhoneNumber action or ChatTrigger node.
  • Errors related to invalid message IDs or chat IDs may occur if the inputs are incorrect or the messages do not exist.
  • Ensure the Telegram session is active and authenticated to avoid 'Unauthorized' errors.

Links

Discussion