create-teact
Scaffold a new Teact bot — bun create teact, templates, and feature toggles.
create-teact scaffolds a ready-to-run Teact project: package.json, tsconfig.json,
teact.config.ts, .env, and a src/ tree that varies by the template and features you
pick.
bun create teact my-bot
# also: npm create teact / pnpm create teactRun it with no flags for the interactive picker, or pass flags to the underlying
teact create: -t/--template, -f/--features, --pm, --no-install.
Templates
| Name | Aliases | Notes |
|---|---|---|
starter | router | Main menu + About; features add routes |
showcase | full | Full demo (Pokedex, streaming, component showcase, guards, deep links) |
counter | — | Single-screen state demo |
empty | — | One Message, no router |
Features
Selected in the picker (comma-separated with -f):
| Feature | Adds |
|---|---|
storage | storagePlugin + persistent state via useStorage |
conversations | conversationsPlugin + multi-step flows |
streaming | streamPlugin + live text via useStream |
auth | useAuthSession + route guards |
payments | Telegram invoices via useInvoice |
i18n is a built-in feature — it is always merged into the scaffold and is not shown in the picker.
The showcase template enables storage, conversations, streaming, auth, and payments by
default.
After scaffolding, add your TELEGRAM_BOT_TOKEN to .env and run teact dev. See
Getting started for the full walkthrough.