Back to Templates

Auto-Download Social Media Videos with Telegram Bot & MediaDL Integration

Created by

Created by: Meak || meak

Meak

Last update

Last update 5 days ago

Share


Download Instagram Reels & Videos with Telegram Bot

Most users copy/paste links into third-party sites or apps to download videos, then manually re-upload them to Telegram.

This workflow does it all automatically: listens for a link in Telegram, downloads the file via MediaDL API, and sends it back to the same chat — all hands-free.

Benefits

  • One-click video download directly inside Telegram
  • Browser-like HTTP headers for higher success rate
  • Wait nodes prevent race conditions or failed fetches
  • Supports any link MediaDL can resolve (YouTube, Twitter, etc.)
  • Instant reply with the actual .mp4 file in chat

How It Works

  1. Telegram Trigger waits for a message with a video link
  2. Sends the URL to MediaDL /api/download to resolve media info
  3. Waits 3 seconds to allow backend processing
  4. Extracts medias[0].url from response
  5. Waits 3 more seconds for proxy to be ready
  6. Calls MediaDL /api/proxy-download?fileUrl=... to fetch the binary
  7. Sends the video back to the same chat with proper filename

Who Is This For

  • Channel owners reposting videos quickly
  • Community managers curating user-shared content
  • Power users who want a private Telegram media downloader

Setup

  • Connect Telegram bot to n8n (get Bot Token via BotFather)
  • Add MediaDL API endpoint (/api/download + /api/proxy-download)
  • Configure headers (User-Agent, Referer) to mimic a browser
  • Adjust wait times for large files or slow hosts
  • Test with a small video before scaling

ROI & Monetization

  • Save 5+ minutes per download/repost cycle
  • Offer as a “content reposter bot” for Telegram communities
  • Package as a paid convenience tool for private groups

Strategy Insights

In the full walkthrough, I show how to:

  • Build reliable Telegram bots with n8n
  • Handle delays, retries, and file size limits
  • Extend workflow to auto-caption or archive media
  • Turn this into a subscription or group-access SaaS bot

Check Out My Channel

For more advanced AI automation systems that generate real business results, check out my YouTube channel where I share the exact strategies I use to build automation agencies, sell high-value services, and scale to $20k+ monthly revenue.