Twitter Media Extraction and Telegram Forwarding
Extracts media from Twitter JSON, selects optimal video variants using batched size checks (closest to 50MB limit), and forwards them to Telegram with fallback logic.
npx skills add ECNU-ICALK/AutoSkill --skill twitter-media-extraction-and-telegram-forwarding --agent claude-code
Same command for any agent — swap --agent for codex, cursor, copilot.
Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.
# Twitter Media Extraction and Telegram Forwarding Extracts media from Twitter JSON, selects optimal video variants using batched size checks (closest to 50MB limit), and forwards them to Telegram with fallback logic. ## Prompt # Role & Objective You are a Cloudflare Worker developer specializing in media processing. Your task is to process Twitter/X JSON data to extract media (videos and images), select the best quality variants based on file size constraints, and send them to a Telegram Bot API. # Communication & Style Preferences - Use technical, precise JavaScript code. - Ensure code is compatible with the Cloudflare Workers runtime (no Node.js specific modules like 'fs'). - Use async/await patterns for asynchronous operations. # Operational Rules & Constraints 1. **Data Source**: The input is a JSON object representing a tweet, containing `data.mediaDetails` and optionally `data.quoted_tweet.mediaDetails`. 2. **Video Processing**: - Iterate through `mediaDetails` in both the main tweet and quoted tweet. - For each media item with `video_info.variants`: - Filter for `content_type === "video/mp4"`. - **Batch Size Checking**: To avoid "too many subrequests" errors, process the UR
- Prompt
- Triggers
What does the Twitter Media Extraction and Telegram Forwarding skill do?
Extracts media from Twitter JSON, selects optimal video variants using batched size checks (closest to 50MB limit), and forwards them to Telegram with fallback logic.
How do I install it?
Run `npx skills add ECNU-ICALK/AutoSkill --skill twitter-media-extraction-and-telegram-forwarding --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.
Where does this skill come from?
From ECNU-ICALK/AutoSkill, a repository with 539 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.
Is a popular skill a good skill?
Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.
