Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/commanderredyt/ytdlp-telegram-bot
- Owner: CommanderRedYT
- License: gpl-3.0
- Created: 2023-03-19T14:27:57.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-05-19T15:06:02.000Z (over 1 year ago)
- Last Synced: 2024-11-18T08:30:27.443Z (2 months ago)
- Topics: nodejs, telegram-bot, yarn, yt-dlp
- Language: TypeScript
- Homepage:
- Size: 94.7 KB
- Stars: 1
- Watchers: 2
- 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.