Paperplane
@paperplane_demo_botBuilt on Next.js · App Router
Your Telegram bot, served from your own domain
A minimal Telegram bot application: a landing page in front, a webhook route behind. Deploy it, attach a DNS record, and the bot answers in Telegram.
connection
- Bot username
- @paperplane_demo_bot
- Bot token
- configured
- Domain
- localhost:3000
- Webhook
- http://localhost:3000/api/telegram/webhook
Webhook endpoint
POST /api/telegram/webhook receives updates, validates the secret header and replies through the Bot API.
Domain ready
One public HTTPS origin is all Telegram needs. Point an A/AAAA or CNAME record and the bot goes live.
Health probe
GET /api/health echoes back the host, protocol and forwarded headers as seen by the app.
Framework of choice
Next.js App Router, React Server Components and Tailwind CSS, ready for the real UI.
Go live in four commands
- 1
npm installInstall dependencies
- 2
cp .env.example .env.localAdd your bot token and domain
- 3
npm run devStart the app on :3000
- 4
npm run webhook:setRegister https://<domain>/api/telegram/webhook