/idmost usedReturns your user ID, current chat ID, and the message ID in one compact response.
A small, fast Telegram bot that returns the IDs and basic metadata you need for groups, channels, and bot development—without keeping a user database.
123456789-100123456789042Designed for the moments when a numeric ID is the missing piece. Add the bot to a chat, send a command, and get a clean HTML response.
/idmost usedReturns your user ID, current chat ID, and the message ID in one compact response.
/useridentityShows the sender name, username, language, premium status, and bot status.
/chatinfocontextShows the current chat title, type, public username, and chat ID.
/helpguideDisplays the available commands and the bot’s privacy promise.
The repo is built for Cloudflare Pages Functions. Static files serve the guide, while /api/telegram receives Telegram updates securely at the edge.
Connect user-info-bot to Cloudflare Pages, or run the Wrangler command from the README.
Set TELEGRAM_BOT_TOKEN, TELEGRAM_WEBHOOK_SECRET, and ADMIN_SETUP_KEY in Pages.
Call the protected setup endpoint once your pages.dev URL is live.
# register the default webhook
curl -X POST https://YOUR_PROJECT.pages.dev/api/setup \
-H 'Authorization: Bearer YOUR_ADMIN_SETUP_KEY'
Cloudflare Pages Functions turns the webhook into a short-lived serverless handler. No VM to patch, no polling loop to keep alive, and no user profile database to maintain.