Teact
Guides

Guides overview

Feature guides for routing, commands, conversations, hooks, UI, and Telegram-specific behavior.

Teact is React for Telegram bots. Everything except the UI components lives in @teactjs/core; components come from @teactjs/ui; the grammY-driven Telegram runtime (adapter, conversations, streaming) comes from @teactjs/telegram.

The old @teactjs/react, @teactjs/runtime, and @teactjs/renderer packages were folded into @teactjs/core in 0.2.0-alpha. Import engine + hooks from @teactjs/core and components from @teactjs/ui.

Use the sidebar to jump to a topic. Suggested order for new bots:

  1. Router — screens and navigation
  2. Commands — /start, menu, deep links
  3. Components — messages, keyboards, media
  4. Hooks — context, session, navigate, commands

Then add Conversations, Forms, Streaming, Events, Storage, or Auth as needed.