Eldian-Network/eldian-music-api ? reverse-engineered prompt
Reverse engineered prompt
Build me a simple music API that lets other bots request audio from YouTube using a video ID and an API key.
I want a small service with a health check endpoint and one main endpoint where a bot sends a video ID and gets the track file back in response. The API keys should be stored in MongoDB, and there should be a Telegram owner bot so I can create, list, and revoke keys from chat. It should only allow the owner to use those admin commands.
Please make the download process reliable, with retries if the request fails, and clean up temporary files automatically so the server does not fill up over time. It should also support the usual config through environment variables, including MongoDB, server host and port, Telegram token, owner ID, and any YouTube download settings like format, timeout, proxy, and cookies if needed. If you need to check current library docs, go ahead and look them up online.
Are you gonna build this?
make sure you review the code using coderabbit