TG → YT Uploader
A Telegram bot and web dashboard that uploads videos from Telegram straight to YouTube, across several channels.
- My role
- Solo: product, backend, UI and deployment
- Links
The problem
Class recordings arrive in Telegram, but they belong on YouTube. The usual route is to download a multi-gigabyte file to a computer, then upload it again, once per video and per channel.
On top of that, the Telegram Bot API caps downloads far below the size of a full class recording, and the videos go to several YouTube channels owned by different Google accounts.
What I built
A Telegram bot receives the video and a FastAPI + htmx dashboard manages where it goes. Uploads use Google OAuth and the YouTube Data API with resumable uploads, so a dropped connection doesn't restart a 4 GB transfer.
Large files are pulled through a Telegram user session (MTProto) instead of the bot, which lifts the limit to files up to 4 GB. Upload progress streams live to the dashboard over Server-Sent Events.
Multi-channel support covers several YouTube Brand Account channels across different Gmail accounts, with an owner-invite flow so each channel owner connects their own account.
Result
It's live in production at upload.nimeshpiyathissa.site, with a red/dark responsive UI that works from a phone. A public installer repo is planned.
Architecture notes
- Telegram bot for intake; MTProto user session as a large-file relay (up to 4 GB).
- FastAPI backend with an htmx dashboard; live progress over SSE.
- Google OAuth 2.0 per channel owner; YouTube Data API resumable uploads.