| src | ||
| .env | ||
| .gitignore | ||
| Dockerfile | ||
| LICENSE | ||
| README.md | ||
telegram_ytdlp_node.js
Description
This bot can download music and videos from youtube.
Installation
Docker
- Install docker (how you can install it on linux: https://fullgream.tech/knowledge-base?post=docker-install)
- Clone repository:
git clone https://git.fullgream.tech/fullgream/telegram_ytdlp_node.js.git - Create file
cookies.txtin program directory (You can use Get cookies.txt loccaly: https://chromewebstore.google.com/detail/get-cookiestxt-locally/cclelndahbckbenkjhflpdbgdldlbecc) - Create telegram bot, get token: https://t.me/BotFather
- Edit file .env
BOT_TOKEN=<YOUR_TELEGRAM_BOT_TOKEN>
ADMIN_LIST=<Admin ID list, separate ", "> (example: 123,321, 678, 911 , 228)
WHITELIST=<User list, separate ", " (Important: Admin list will add to whitelist automatly)> (example: 123,321, 678, 911 , 228)
SHOW_ALL_FORMATS=<Show all formats from video (1, 0 - Only '.mp4', 'm4a')>
- Build docker container:
docker build -t ytdlp_node:release . - Up docker container:
docker run -d --restart unless-stopped --env-file .env ytdlp_node:release