TE

Automated, reliable download of single videos from Telegram posts.

Install

mkdir -p .claude/skills/telegrab-fetch && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/13122" && unzip -o skill.zip -d .claude/skills/telegrab-fetch && rm skill.zip

Installs to .claude/skills/telegrab-fetch

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Use when the user needs to download one Telegram video from a post link through this repository's telegrab CLI with deterministic preflight checks and machine-readable result fields.
182 chars✓ has a “when” trigger
Beginner

Key capabilities

  • Download a single video from a Telegram post link
  • Perform preflight checks for credentials and authorization
  • Run CLI commands via bash script to ensure venv and PYTHONPATH
  • Return local file path and fetch metadata on success
  • Report specific error codes and messages on failure

How it works

The skill executes doctor, status, and fetch commands in JSON mode, performing preflight checks for credentials and authorization before attempting to download the video.

Inputs & outputs

You give it
Telegram post link (telegram_link), optional output_dir, name_template, overwrite
You get back
file_path, source_url, message_id, chat_id, exit_code on success; exit_code, error_code, error_message on failure

When to use telegrab-fetch

  • Downloading specific videos from Telegram
  • Automating media extraction

About this skill

Telegrab Fetch

Use this skill for one practical task: download a single video from one Telegram post link and return the local file path plus fetch metadata.

When to use

  • The user provides (or wants to provide) one t.me or telegram.me post link.
  • The user expects the agent to run the local telegrab utility in this repository.
  • The user needs a predictable result that can be reused by another step.

Inputs

  • Required:
    • telegram_link
  • Optional:
    • output_dir (default ./downloads)
    • name_template (pass through to --name-template)
    • overwrite (boolean, default false)

If the link is missing, ask only for the link. Do not ask extra questions when defaults are acceptable.

Required workflow

Always execute in this order, using JSON mode:

  1. doctor --output json
  2. status --output json
  3. fetch <link> --output json (plus optional flags)

Run CLI commands via bash scripts/run_telegrab.sh to ensure the repository venv and PYTHONPATH=src are used.

Decision rules

  • If doctor reports missing credentials (credentials_present=false), stop and explain:
    • where config is expected (config_path from doctor),
    • that credentials must be set (TELEGRAB_API_ID, TELEGRAB_API_HASH, or config file).
  • If status reports authorized=false, stop and instruct the user to run telegrab login manually.
  • Do not try to automate interactive login prompts.
  • If preflight passes, run the real fetch directly (no mandatory dry-run step).

Output contract

On success, return:

  • file_path
  • source_url
  • message_id
  • chat_id
  • exit_code

On failure, return:

  • exit_code
  • error_code
  • error_message

Preserve telegrab semantics. Do not reinterpret or remap exit codes; treat CLI JSON as source of truth.

Error handling

For known failures, keep the message short and actionable:

  • 2: invalid link/input
  • 3: credentials or authorization missing
  • 4: channel/message inaccessible
  • 5: message has no video
  • 6: content restriction
  • 7: Telegram/runtime error

When reporting an error, include original error_message from CLI output.

When not to use it

  • When the user needs to download multiple videos
  • When the user does not provide a t.me or telegram.me post link
  • When the user expects the agent to automate interactive login prompts

Limitations

  • The skill downloads only a single video from one Telegram post link
  • The skill does not automate interactive login prompts
  • The skill relies on the local telegrab utility in this repository

How it compares

This skill provides a deterministic and machine-readable way to download a single Telegram video with explicit preflight checks, unlike a manual download or a less structured script.

Compared to similar skills

telegrab-fetch side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
telegrab-fetch (this skill)04moReviewBeginner
youtube-downloader05moReviewBeginner
crawl4ai218moReviewIntermediate
firecrawl-scrape57moReviewBeginner

Try saying

Example prompts that trigger this skill in your AI assistant.

Search skills

Search the agent skills registry