ibrahim8shahz10-prog/telegram-referral-bot ? reverse-engineered prompt

Reverse engineered prompt

Build me a simple Telegram referral bot that can run as a small Node app and be deployed on Vercel.

I want users to be able to start the bot, get their own referral link, and see how many people they have invited. When someone joins through a referral link, the bot should recognize who referred them and keep track of it so the original user gets credit. If possible, show a basic message with their referral count and a way to share their link easily.

Please keep the setup straightforward, use sensible defaults, and make it easy to configure with environment variables for the Telegram bot token and anything else needed. If there are any current best practices or Telegram API details I should know, look them up and use the latest docs. Also make sure the project is clean, works from the existing structure, and includes anything needed so I can deploy and test it quickly.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab