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

tg-mtproto-cli

cyberash-dev द्वारा

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

संक्षिप्त

Read-only Telegram CLI via MTProto.

विवरण

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

Read-only Telegram CLI that uses the MTProto protocol directly, bypassing the Bot API. Lists chats, fetches message history, downloads media, and manages multiple authenticated sessions. Cannot send messages or modify any Telegram data.

Direct MTProto access avoids Bot API rate limits and works on any chat the user is a member of, not just bots.

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

  • Pulling recent messages from a Telegram channel for archiving
  • Downloading photos or videos from a group chat
  • Searching message history across multiple accounts
  • Monitoring a forum topic for new posts since a given date
  • Extracting structured message data for scripts or pipelines

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

इनपुट

User asks: Download all photos posted in @mychat in the last 50 messages

एजेंट
  1. 1

    Run tg messages @mychat -n 50 --json to fetch recent messages as JSON

  2. 2

    Pipe output through jq to filter messages where .media.type == "photo" and extract .id values

  3. 3

    Loop over each message ID and run tg download @mychat <id> --out ./photos

  4. 4

    Confirm download completion from exit codes and --json output

आउटपुट

All photos from the last 50 messages saved to ./photos directory

आवश्यकताएँ

  • Telegram api_id and api_hash from my.telegram.org/apps
  • tg-mtproto-cli installed globally via npm (`npm install -g tg-mtproto-cli`)
  • Telegram phone number and OTP code for initial `tg auth` session setup

इंस्टॉलेशन

clawhub install cyberash-dev/tg-mtproto-cli

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

लिंक