A simple Telegram bot that allows you to send a supported link from yt-dlp, and it will respond with the video.
Make sure you have node 18+ and ffmpeg installed.
Set up Telegram bot and get an access token.
First, download the latest version of yt-dlp
:
npm run download
Then make sure yt-dlp
is executable:
chmod 700 yt-dlp
Finally, run the bot:
TELEGRAM_BOT_TOKEN=<token> npm start
If you would like to set an allow list, you can do:
TELEGRAM_BOT_ALLOW_LIST=username1,username2,username3