mtcute powered Telegram bot to rip Apple Music songs in ALAC format.
Go binary is needed to build the shared library for the apple music ripper which is written in go and the bot logic is written in bun/ts using mtcute
go build -o wrapper.<suffix> -buildmode=c-shared wrapper.go # suffix is .so for linux, .dylib for macos, .dll for windowsbun i
bun i # twice because `ref` gives errors
cp .env.example .env
# edit .env
bun dev # or bun startAPI_IDandAPI_HASH- Telegram API credentialsBOT_TOKEN- Bot tokenMONGO_URI- MongoDB URIADMIN_ID- Admin ID (your telegram ID)DUMP_ID- Chat ID where the bot will dump the ripped songs for future useM3U8_URL- URL of the device checkout - wrapperDEC_URL- URL of the decryptor checkout - wrapper
Note: Don't forget to add the bot to the dump channel and give it admin rights.
/start- Start the bot/song- Reply to an Apple Music link to rip the song/help- Get help/authorize- Authorize the bot to a chat or group or user/id- Get the chat ID/ping- Check if the bot is alive - pong
- mtcute - Telegram client library
- wrapper - Apple Music ripper
- bun - JS/TS Runtime
- mongodb - Database
This bot is for educational purposes only. I am not responsible for any misuse of this bot. I do not support piracy. Use this bot at your own risk. I am not responsible for any legal issues that may arise from the use of this bot. I am not anyway affiliated with Apple Music or Telegram.