How lensnteam/liant works
LianT is a Telegram bot management system with self-hosted service support, desktop and Android client surfaces, and a download website. Its central runtime workflow is the service command dispatcher starting a daemon that manages bot subprocesses; bot processes connect through local WebSockets, while the daemon provides the public proxy boundary. Bot runtime exchanges messages and media with Telegram and connected clients. The desktop launcher provisions Python and starts the client. The README is high-level, and several source excerpts are partial, so uncertain wiring—especially between client surfaces and service APIs—is omitted.
Main entry points: botruntime/main.go Bot runtime · service/main.go Command dispatch · cmd/main.go Desktop launcher · manager.go Process manager
Components 22
Bot service
- Command dispatch
service/main.go - Configuration
service/config/config.go - Service commands
service/service/command.go - Bot daemon
service/service/daemon.go - Process manager
service/service/manager.go - Bot runtime
service/botruntime/main.go - WebSocket server
service/wss/wss.go - WSS proxy
service/service/wssproxy.go - Key encryption
service/crypto/chacha.go - Bot token store
service/botruntime/main.go
Client applications
- Desktop launcher
manager/desktop/launcher/cmd/main.go - Runtime locator
manager/desktop/launcher/runtime/manager.go - Runtime provisioner
manager/desktop/launcher/updater/updater.go - Desktop client
manager/desktop/client/src/main.py - Android client
manager/android/app/src/main/kotlin/com/lensnteam/liant/SplashActivity.kt
Download website
- Website pages
pages/src/app/page.tsx - Download views
pages/src/app/manager/page.tsx - Release data
pages/src/data/downloads.ts - GitHub data
pages/src/data/github.ts
External systems
- Telegram API
Other components
- Operator
- Website visitor
Connections 22
- Operator → Command dispatch: runs commands
- Command dispatch → Configuration: dispatches config
- Command dispatch → Service commands: dispatches service
- Command dispatch → Bot daemon: starts daemon
- Service commands → Bot daemon: starts daemon
- Bot daemon → Process manager: manages bots
- Process manager → Bot runtime: starts subprocess
- Process manager → WSS proxy: routes connections
- Bot runtime → Bot token store: reads token
- Bot runtime → Key encryption: decrypts token
- Bot runtime → Telegram API: polls and sends
- Bot runtime → WebSocket server: exchanges messages
- WebSocket server → WSS proxy: serves local WSS
- Desktop launcher → Runtime locator: locates runtime
- Desktop launcher → Runtime provisioner: provisions runtime
- Desktop launcher → Desktop client: starts client
- Operator → Desktop launcher: launches client
- Operator → Android client: opens app
- Website visitor → Website pages: browses
- Website pages → Download views: links downloads
- Download views → Release data: reads releases
- Download views → GitHub data: loads GitHub data