Telegram bot that allows to download videos from YouTube
Link to bot: https://t.me/youtube_downloader_nodejs_bot
Built on Telegraf.js
. See: https://telegrafjs.org/
To run the bot locally on your system:
-
Clone this repository
git clone [email protected]:shelepuginivan/youtube-downloader-bot.git
-
Set environment variable
bot_token
:On Unix/Linux/WSL:
export bot_token=GET_YOUR_TOKEN_FROM_FATHERBOT
On Windows, set environment variable throw
sysdm.cpl
Or simply add your variable to
config.ts
:export const TELEGRAM_BOT_TOKEN: string = 'PUT_TOKEN_HERE'
-
Run
scripts/start.sh
On Unix/Linux/WSL:
scripts/start.sh
On Windows:
bash scripts/start.sh
The above commands will spawn a daemon process with pm2
.
See: https://pm2.keymetrics.io/
To stop the bot, kill process by its pid.
/start
, /help
- will show intro message with all information
To download a video:
- Send bot a link to the video
- Wait for the video to download. That may take some time
- Bot will automatically send an
*.mp4
file with your video