Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/commanderredyt/ytdlp-telegram-bot

A quick little telegram bot that downloads videos with yt-dlp
https://github.com/commanderredyt/ytdlp-telegram-bot

nodejs telegram-bot yarn yt-dlp

Last synced: 8 days ago
JSON representation

A quick little telegram bot that downloads videos with yt-dlp

Awesome Lists containing this project

README

        

# ytdlp-telegram-bot

This is a telegram bot that uses [yt-dlp](https://github.com/yt-dlp/yt-dlp) to download videos from youtube.
My personal use-case is combining this with Jellyfin.

## Usage
```bash
git clone https://github.com/CommanderRedYT/ytdlp-telegram-bot
cd ytdlp-telegram-bot
yarn install

# Configure
cp .env.default .env

# Edit .env to your needs

# Run
yarn start
```

## Systemd service
The service file is located at 'ytdlp-telegram-bot.service'. Replace with the user that should run the service and `/path/to/telegram-yt-dlp` with the path to the cloned repository.

Then, to install the service, run:
```bash
sudo cp ytdlp-telegram-bot.service /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable ytdlp-telegram-bot
sudo systemctl start ytdlp-telegram-bot
```

## Configuration
```bash
# .env
TELEGRAM_BOT_TOKEN=
JWT_SECRET=
DATA_DIRECTORY=
CHMOD=
```

## Bot commands
```
/start - Start the bot. This will generate and print a token.
/token - Authenticate with the bot. After that, you can just send a youtube link to download it.