odongbenjamin5/Telegrate ? reverse-engineered prompt

Reverse engineered prompt

Build me a Telegram paid channel system that lets people subscribe through a bot, pay for access, and then get a private invite link automatically once payment is confirmed. I want an admin dashboard where I can see plans, users, payments, subscriptions, and activity logs, and I want to be able to create or disable plans from there.

Please make it work with a PostgreSQL database, handle Flutterwave payments safely, and only grant access after the payment is verified on the server. The invite link should be single use and expire after a set time, and the system should automatically remove people when their subscription ends. I also want a webhook endpoint for Flutterwave, basic rate limiting and security headers, and a clean setup that can run locally and in Docker.

Make the dashboard usable and simple, with a modern look, and if you need current docs for Telegram or Flutterwave, look them up online before wiring things up.