본문으로 건너뛰기
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 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크