Telegram CoPilot icon

Telegram CoPilot

袙邪褕 锌械褉褋芯薪邪谢褜薪褘泄 Telegram CoPilot

Actions56

效邪褌 → 袩芯谢褍褔懈褌褜 褋锌懈褋芯泻 斜懈蟹薪械褋-褋褋褘谢芯泻

AI-generated

Overview

This node operation interacts with Telegram chats to retrieve the chat history. It allows users to fetch messages from a specified chat by providing the chat ID, an optional starting message ID, and a limit on the number of messages to retrieve. This is useful for scenarios where users want to analyze past conversations, archive chat data, or monitor chat activity.

Use Case Examples

  1. A user wants to download the last 100 messages from a specific Telegram chat for analysis.
  2. An automation workflow fetches chat history to trigger actions based on message content.

Properties

Name Meaning
Chat ID The unique identifier of the Telegram chat from which to retrieve the history.
from_message_id The message ID from which to start fetching the chat history (optional).
limit The maximum number of messages to retrieve from the chat history.

Output

JSON

  • messages - Array of messages retrieved from the chat history.
  • total_count - Total number of messages retrieved.

Dependencies

  • Requires Telegram API credentials including apiId, apiHash, and phoneNumber for authentication.

Troubleshooting

  • Ensure the Telegram account is logged in and the session is active; otherwise, the node will throw a login error.
  • If the chat ID is invalid or the chat is not found, the node will throw an error indicating the chat was not found.
  • Network issues or Telegram API rate limits may cause errors; retry or check connectivity.

Links

  • TelePilot Login Guide - Instructions on how to log in and authenticate the Telegram account for this node.

Discussion