Skip to content
noconfig

starter-telegram

by @noconfig Official

A Telegram bot with /start and /roll, using webhooks (no polling, so it can sleep). No packages to install.

starter-telegram.noconfig.online

README.md

# Telegram bot

1. On Telegram, message **@BotFather**, send `/newbot` and follow the steps.
2. Paste the token into `.env` as `TELEGRAM_TOKEN` and save.
3. Open your app's page once: that registers the webhook with Telegram.

Telegram sends each message to your app's address, which wakes it if it's asleep, so this works on the Free plan.

## How noconfig runs this

There's no config file. noconfig looks at your files and works it out:

- `package.json` scripts → `npm start` (or build, then serve the output)
- `server.js`, `index.ts` and friends → `node <file>` (TypeScript runs directly)
- `app.py` → Python, with `requirements.txt` installed first
- `index.php` → PHP's built-in server
- otherwise `index.html` → served as a static site

Edit any file and the preview updates by itself. Put secrets in `.env`: they're hidden from anyone who views or remixes your project.

Comments 0

  • No comments yet. Say something nice.

Sign in or create an account to comment and react.