jainamoswal/IP-Details ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Python Flask app that shows a redirect page and captures a visitor’s IP address, then sends me the basic details in my Telegram chat. I want it to use environment variables for my Telegram user ID, bot token, and the URL to redirect to after the visit.

When someone opens the app, it should grab their IP, try to work out the approximate location and other useful network details, then send a clean message to Telegram and move them on to the redirect link. Make it easy to run locally too, and easy to deploy on a service like Heroku or something similar.

Please keep it simple, with clear setup instructions in the README, and make sure the app works as a small one file Flask project if possible. If you need to check anything current about deployment or Telegram docs, look it up online.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab