Telegram CoPilot icon

Telegram CoPilot

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

Actions56

小芯芯斜褖械薪懈械 → 袠蟹屑械薪懈褌褜 褌械泻褋褌 褋芯芯斜褖械薪懈褟

AI-generated

Overview

This node operation retrieves the chat history for a specified chat in Telegram. It is useful for scenarios where you want to fetch past messages from a chat, such as for analysis, backup, or monitoring purposes. For example, you can use it to get the last 100 messages from a group chat or a private conversation.

Use Case Examples

  1. Fetch the last 50 messages from a specific chat to analyze conversation trends.
  2. Retrieve chat history to back up important messages before deleting a chat.

Properties

Name Meaning
Chat ID The unique identifier of the chat from which to retrieve the history.

Output

JSON

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

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 does not exist, an error will be thrown indicating the chat was not found.
  • Network issues or Telegram API rate limits may cause request failures; retry or check connectivity.

Links

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

Discussion