Private-Bots-Official/Temp-Mail-Bot — reverse-engineered prompt
Reverse engineered prompt
Build me a Telegram bot that lets people create disposable email addresses and then receive any incoming emails right inside Telegram. I want it to feel simple, with a friendly /start flow and buttons to generate a temp mail address. If someone sends mail to that address, the bot should forward the message to the right Telegram user.
Please make it work with a bot token, a channel username requirement, and an optional MongoDB connection so I can save users and make a /users command that shows the total user count when a database is connected. If the database is not set, the main bot should still work.
I want this set up so I can deploy it on Deno Deploy using main.ts as the entry point, and then connect it to Telegram with a webhook. Keep the config straightforward with env vars like BOT_TOKEN, CHANNEL_USERNAME, and MONGO_URI. If you need anything current, feel free to check the latest Telegram Bot API and Deno Deploy docs online.
Want more depth? Deep Reverse