connectingeverycorner/get-chatid-bot-cf-worker ? reverse-engineered prompt
Reverse engineered prompt
Build me a Telegram bot that runs on Cloudflare Workers and helps people quickly find their chat ID. I want it to work without managing a server, just deploy it and connect it to Telegram with a webhook.
The bot should respond clearly when someone sends it a message or adds it to a group, and show the chat ID in a simple way that is easy to copy. It should support one main bot through environment variables, and also allow multiple bots through a JSON config if I want to add more later. Please make it easy to set the bot token, a secret for the webhook, and the language, with automatic language detection if possible.
I also want the setup to be straightforward, with clear instructions for deploying on Cloudflare and setting the Telegram webhook. If you need to look up current Cloudflare or Telegram docs online, go ahead.
Are you gonna build this?
make sure you review the code using coderabbit