Telegram CoPilot icon

Telegram CoPilot

Your Personal Telegram CoPilot

Message → Get Messages

AI-generated

Overview

This node interacts with the Telegram API to perform various operations related to Telegram messages, chats, users, and files. Specifically, for the 'Message' resource and 'Get Messages' operation, it retrieves messages from a specified chat by chat ID and message ID. This node is useful for automating Telegram workflows such as fetching message details, sending messages, editing messages, and managing chats. For example, it can be used to fetch a specific message from a chat for processing or logging, or to automate message sending in response to events.

Use Case Examples

  1. Fetch a specific message from a Telegram chat by providing the chat ID and message ID.
  2. Retrieve chat history or details of a chat by chat ID.
  3. Send a message or media file to a chat automatically.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat from which to get messages. Required for message-related operations.
Message ID The unique identifier of the specific message to retrieve within the chat. Required for operations targeting a specific message.

Output

JSON

  • id - The unique identifier of the message.
  • peerId - The identifier of the chat or user the message belongs to.
  • message - The text content of the message.
  • date - The timestamp when the message was sent.
  • media - Any media content attached to the message, such as photos, audio, or files.
  • senderId - The identifier of the user who sent the message.

Dependencies

  • Requires Telegram API credentials (API ID, API Hash, and phone number) for authentication.

Troubleshooting

  • Ensure the Telegram API credentials are correctly configured and the user is logged in; otherwise, the node will throw authentication errors.
  • If the message or chat ID is invalid or not found, the node will throw an error indicating the message or entity was not found.
  • Network issues or Telegram API rate limits may cause errors; retry or check connectivity.
  • If the session is closed or unauthorized, the node will prompt to login again with instructions.

Links

Discussion