कंटेंट पर जाएँ
TakoAPI
स्किल्स पर वापस

telegram-history

rhlsthrm द्वारा

Browser & Automation
1.2kclawskills.sh द्वारा बताए गए डाउनलोड
1स्टार
0व्यूज़
0 लाइकइस स्किल को लाइक करने के लिए साइन इन करें
—अभी तक कोई रेटिंग नहीं
आपकी रेटिंग

संक्षिप्त

Fetch Telegram chat message history via MTProto user API (Telethon)

विवरण

यह स्किल क्या करती है

Fetches message history from Telegram chats, groups, and forum topics using the MTProto user API via Telethon. The Telegram Bot API cannot read chat history, so this skill authenticates as a user account instead. Supports filtering by topic, pagination by message ID, and JSON output.

Unlike the Bot API, MTProto user authentication gives read access to any chat the account belongs to, including history the bot endpoint blocks entirely.

इसे कब इस्तेमाल करें

  • Archiving old messages from a private Telegram group
  • Exporting a forum topic thread before it gets deleted
  • Paginating through thousands of messages in a large channel
  • Pulling chat logs into a local database for search
  • Reviewing message history in a group the bot API cannot access

उदाहरण वर्कफ़्लो

इनपुट

User asks: Fetch the last 50 messages from group -1001234567890 as JSON

एजेंट
  1. 1

    Load api_id and api_hash from api_credentials.json in the skill directory

  2. 2

    Resume the saved Telethon session for the authenticated user account

  3. 3

    Call tg_history.py with the chat ID, --limit 50, and --json flags

  4. 4

    Resolve sender display names for each message

  5. 5

    Return the formatted JSON array

आउटपुट

A JSON array of 50 messages with sender names, timestamps, and message text

आवश्यकताएँ

  • Telegram API credentials (api_id and api_hash) from https://my.telegram.org/apps
  • Telegram account phone number for one-time login

इंस्टॉलेशन

clawhub install rhlsthrm/telegram-history

CLI कमांड चलाएँ, या प्रॉम्प्ट को Claude Code, Cursor, Codex या जो भी कोडिंग एजेंट आप इस्तेमाल करते हैं उसमें पेस्ट करें।

लिंक