If you run a Telegram channel and also follow YouTube creators, you know the routine:
- New video drops
- You notice it (eventually)
- You download it
- You re-upload it to Telegram
- Repeat until your motivation unsubscribes
So I built a small Python script that automates the whole "YouTube -> Telegram" pipeline.
Repo: https://github.com/mebularts/Youtube-Content-on-Telegram
What it does
- Checks the latest uploads from the YouTube channels you define
- Downloads the video
- Posts it to your Telegram channel/group via a bot
- Stores sent history so it won't repost the same video twice
- Runs on a schedule (set-and-forget energy)
How it works (high level)
1) Fetch video info from YouTube Data API
2) Download with pytube
3) Send via telebot
4) Repeat on a timer with schedule
Quick start
Install
git clone https://github.com/mebularts/Youtube-Content-on-Telegram.git
cd Youtube-Content-on-Telegram
pip install -r requirements.txt
Configure
Open main.py and set:
-
TOKEN(your Telegram bot token) -
CHAT_ID(target channel/group, e.g.@your_channel) YOUTUBE_API_KEY-
CHANNELS_URL(where your channels list lives)
Update kanallar.json with the YouTube channel IDs you want to track.
Run
python main.py
Responsible use
Please use this only for content you own or have permission to redistribute.
Creators deserve credit (and not surprise re-uploads).
Feedback welcome
If this saves you from "copy-paste content manager" mode:
- Star the repo
- Open an issue with improvements
- PRs are welcome
Happy automating!
- Mehmet (mebularts)
Top comments (0)