Skip to Content
Telegram MCPComponentsComponent Documentation

Component Documentation

Per-module documentation for the modules that have landed. One page per significant src/ module: responsibility, public surface, dependencies, and any non-obvious behavior.

Landed (Phase 1)

ModulePage
src/config.tsconfig
src/lib/log.tslib-log
src/http/server.tshttp-server
src/http/healthz.tshttp-healthz
src/http/telegramWebhook.tshttp-telegramWebhook
src/telegram/normalize.tstelegram-normalize
src/telegram/client.tstelegram-client
src/telegram/echo.tstelegram-echo
src/telegram/dispatch.tstelegram-dispatch
src/db/client.tsdb-client
src/db/users.tsdb-users

Planned (later phases)

Sketched in ../plan/design-overview.md under “Repo Layout”:

  • src/telegram/outbound.tssend_message / send_image / edit_message / send_buttons implementations (Phase 2)
  • src/mcp/ — server, auth, sessions, notifications, tools (Phase 2–6)
  • src/auth/ — user status/role checks, middleware (Phase 3)
  • src/memory/ — KV + chat history store (Phase 4)
  • src/jobs/ — Inngest events, client, functions (Phase 5)
  • src/lib/errors.ts — JSON-RPC error code mapping (Phase 2)

See ../plan/ for what’s being built when.