ashishyadav210/Website-Source-Downloader-Telegram-Bot ? reverse-engineered prompt

Reverse engineered prompt

Build me a Telegram bot that can take a website URL and download the site’s source for me.

I want it to crawl the site up to a limited depth, grab the HTML pages, images, CSS, JavaScript, and any API responses it finds on the same domain, then organize everything into a clean folder structure and compress it into a ZIP file. After that, the bot should send the ZIP back in Telegram and also give a short stats summary like how many pages and files were saved.

Please add simple commands like /start and /download, with good error handling if the link is bad, the site is too large, or something fails during crawling. It should be safe and stay on the same domain only.

Make it work well on Android too, especially Termux or Pydroid, but it should also run on a normal Python server or Windows machine. If you need to check current docs for the Telegram library, feel free to look them up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab