π₯ 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_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) |