vaaski / telegram-ytdl

A simple & fast YouTube download Telegram bot.
https://t.me/vYTDL_bot
24 stars 10 forks source link
downloader fast fortnite nodejs telegram typescript youtube

telegram-ytdl

A simple & fast YouTube download Telegram bot.

Telegram Bot GitHub top language

Synopsis

I was never satisfied with any YouTube downloader solution, because they either required chasing some website that was either bloated with ads, painfully slow, taken down the next day or all of those combined. Using yt-dlp in the command line was my go-to, but doesn't really work great on mobile.

So I made this bot, to download from a single place across platforms, fast and effortless.

The bot then simply passes the URL to yt-dlp with the -f b flag, which downloads the best quality format that contains both video and audio. This is meant to work together with a self-hosted Telegram bot API server, so that the upload limit for bots is increased from 50MB to 2GB.

Because content sites change often (especially TikTok!), the bot uses the nightly build of yt-dlp to always get the latest resolvers. It will also auto-update yt-dlp every night as long as you don't set YTDL_AUTOUPDATE to "false".

The instance hosted by me is no longer available for public use, but you can simply host your own instance.

Hosting

To host your own instance of this bot, you need to have a Telegram bot token, Telegram API Token and a server to run the bot on. You can create a Telegram bot with BotFather and purchase a cheap VPS with the hoster of your choice.

I recommend Hetzner and you can get 20€ in credits for free using my referral link.

Installation

If you have any problems with hosting feel free to contact me or open an issue.