utshadhar/psa-telegram-notifier ? reverse-engineered prompt

Reverse engineered prompt

Build me a lightweight Python app that runs in the background and watches a PSA API for pending Sales Orders and Collection Orders, then sends me summary alerts in Telegram.

I want it to be super simple to set up, with no extra packages if possible, and it should work on Windows or Linux. It needs a small web server too, so I can check if it’s alive, see basic stats, and trigger a manual notification when I want. The monitoring should run on a schedule, handle overnight hours properly, and if it checks after midnight it should still look at the right day’s data.

Please make it read its settings from a local config file or environment variables, including my Telegram bot token, chat id, API URLs, and timing settings. It should be easy to run from the command line, and if you can, include clear setup instructions and a simple way to keep it running all the time. If you need to look up current docs online for anything, go ahead.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab