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: 2 months ago
JSON representation
A quick little telegram bot that downloads videos with yt-dlp
- Host: GitHub
- URL: https://github.com/commanderredyt/ytdlp-telegram-bot
- Owner: CommanderRedYT
- License: gpl-3.0
- Created: 2023-03-19T14:27:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T15:06:02.000Z (about 3 years ago)
- Last Synced: 2025-10-30T07:44:53.501Z (8 months ago)
- Topics: nodejs, telegram-bot, yarn, yt-dlp
- Language: TypeScript
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.