Skip to content

Fahad-1515/telegram-ytshorts-bot

Repository files navigation

Telegram Shorts Bot 🎬🤖

This bot automates turning YouTube (or uploaded) videos into 9:16 portrait shorts of ≤50 seconds each, and send back the Clips after Generated.


#11min tested--Video duration of Youtube must be less than 11 min

✨ Features

  • Download videos via yt-dlp or accept direct uploads.
  • Convert videos to 9:16 portrait (for TikTok, Reels, Shorts).
  • Split into clips ≤50 seconds.
  • Return clips directly in Telegram.

🚀 Quickstart (Local)

1. Install system dependencies

..venv\Scripts\Activate.ps1
winget install ffmpeg

ffmpeg -version

pip install python-telegram-bot yt-dlp openai-whisper ffmpeg-python
pip install "urllib3<2"

python3 -m venv venv

$env:TELEGRAM_BOT_TOKEN="your token"

python .\telegram_shorts_bot.py

============================================================================================================

sudo apt update && sudo apt install -y ffmpeg python3 python3-venv python3-pip git build-essential

================= docker-compose down

docker-compose build --no-cache docker-compose up -d docker-compose logs -f

docker-compose logs

About

YouTube Video Link to yt-short video convertor

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published