BotЗакрытый репозиторий

MediaFlow — media downloader bot

Telegram bot that downloads from YouTube, Instagram and X through Celery workers, uploads large files over MTProto, and serves repeat requests from a PostgreSQL cache.

Обзор

A Telegram media downloader with an operator admin behind it.

Мой вклад

  • Built it end to end — 70 commits, 85 test functions.
  • aiogram takes the request; Celery workers download with yt-dlp and remux with ffmpeg; Pyrogram uploads over MTProto so the 50 MB Bot API limit stops applying.
  • Every resolved file cached in PostgreSQL, so a repeated link is served without touching the source; Redis as broker and rate limiter.
  • Media tasks that retry and fail explicitly; MinIO delivery; Prometheus metrics endpoint.
  • Admin with dashboard metrics, subscriptions and per-user download history.
  • CI and production deploy workflows with health checks.

Архитектура

  • aiogram + Pyrogram, Celery on Redis, PostgreSQL with SQLAlchemy and Alembic, MinIO, Nginx; Docker Compose.
Все проекты
MediaFlow — media downloader bot — Matnazar Matnazarov