Tamilupdates/FileToLink ? reverse-engineered prompt

Reverse engineered prompt

Build me a Telegram bot that lets people send a file and get back a fast direct download link they can open in a browser, and stream media too.

I want it to save uploaded files in a private Telegram channel, then generate a permanent shareable link for each file as long as it stays in storage. It should work with videos, audio, documents, images, and other file types, and handle more than one file when needed.

Make it support a simple admin setup, user access control, and a token system for protecting links if that is part of the flow. It should also show useful file details like size and duration when someone uploads something.

Use Python and make it ready to run as a Telegram bot with MongoDB support, plus a clean Docker setup so I can deploy it on a server easily. If you need current setup details, look up the latest docs online first.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab