You: Tell me about Teact.

An open-source framework for building Telegram bots in React: messages are components, state is hooks, screens are routes.
Telegram bots are usually written as a tangle of command handlers and callback queries. Anything with menus, steps or state gets hard to follow fast. React already solved this for UIs.
TypeScriptReact reconcilergrammYBunnpm (@teactjs)
bot/routes/work/teact.tsx
import { Message, Photo, List, ListItem, InlineKeyboard, Button } from "@teactjs/ui";
export function Teact() {
return (
<>
<Message>
<Photo src="work/teact.webp" />
<Message.Bold>Teact</Message.Bold>
An open-source framework for building Telegram bots in React: messages are components, state is hooks, screens are routes.
</Message>
<Message>
<Message.Bold>What I built</Message.Bold>
<List>
<ListItem>A custom React reconciler that renders JSX…</ListItem>
<ListItem>A router for multi-screen bots, hooks for …</ListItem>
<ListItem>A Telegram adapter on grammY with polling …</ListItem>
<ListItem>A CLI (dev with hot reload, build, deploy,…</ListItem>
<ListItem>Testing utilities with a mock adapter, so …</ListItem>
</List>
</Message>
<InlineKeyboard>
<Button text="GitHub" url="https://github.com/leuliance/teact" />
<Button text="Docs" url="https://teact-docs.vercel.app" />
</InlineKeyboard>
</>
);
}