📥 Download MP3 from YouTube on Telegram 🎧
🔁 Validate
ℹ️ Get info
📥 Download video
🎙 Convert to MP3
📸 Generate cover (video thumbnail) and set to MP3 file
🖋 Write meta data (artist, title, album)
📤 Upload to Telegram
- Download a release or clone repository
- Open CMD/terminal and navigate to project folder
- Run
npm i --omit=dev
to install dependencies (or justnpm i
for development) - Create environment file
.env
using.env.example
& configure - Run
npm run start
to start the bot
- NodeJS v16+
- FFMPEG (official download page)
- MongoDB
Key | Value |
---|---|
YTA_TG_TOKEN |
Telegram bot API token |
YTA_CACHE_DIR |
Data and cache directory (created and cleared on app startup) |
YTA_COOKIES_JSON_PATH |
Optional path to cookies (explained here) |
YTA_TG_OWNERS |
Array of chat ID (Telegram account/chat ID) |
YTA_WHITELIST_CHATS |
Array of chat ID or username (do not auto leave from these chats) |
YTA_FFMPEG_EXE |
Path to a working ffmpeg binary (converts MP4 to MP3) |
YTA_MONGODB |
MongoDB connection string |
YTA_USER_CONCURRENT_DOWNLOADS |
Maximum number of concurrent downloads per user |
YTA_TOTAL_CONCURRENT_DOWNLOADS |
Maximum number of concurrent downloads (queue limit) |