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 specify a chat ID, an optional starting message ID, and a limit on the number of messages to fetch. This is useful for scenarios where you want to analyze or archive chat conversations, monitor chat activity, or integrate chat data into other workflows.

Use Case Examples

  1. Fetch the last 100 messages from a specific Telegram chat for analysis.
  2. Retrieve chat history starting from a particular message ID to continue processing from a known point.

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 retrieving the chat history (optional).
Limit The maximum number of messages to retrieve from the chat history.

Output

JSON

  • messages - An array of messages retrieved from the specified chat history.
  • total_count - The total number of messages retrieved.

Dependencies

  • Requires Telegram API credentials including API ID, API hash, and phone number 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.
  • If the Telegram API returns permission errors, ensure the account has the necessary rights to access the chat history.

Links

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

Discussion