Teact
Packages

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 teact

Run it with no flags for the interactive picker, or pass flags to the underlying teact create: -t/--template, -f/--features, --pm, --no-install.

Templates

NameAliasesNotes
starterrouterMain menu + About; features add routes
showcasefullFull 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):

FeatureAdds
storagestoragePlugin + persistent state via useStorage
conversationsconversationsPlugin + multi-step flows
streamingstreamPlugin + live text via useStream
authuseAuthSession + route guards
paymentsTelegram 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.

On this page