How fazaroot/app-telecore works
TeleCore is a Telegram bot control center with a React/Capacitor Android client and a separately running Rust backend. The main workflow is to configure bots and workflows in the app, connect to the backend, then have that backend poll Telegram, process updates, run automation or scheduled tasks, and deliver messages. The README also documents analytics, knowledge/AI, backups, migration, security, webhooks, and MCP. Some backend and Android subsystems are represented at their exact enclosing directories because their implementations were not excerpted; edges are limited to documented or indexed relationships.
Main entry points: api REST endpoints · telegram.rs Telegram client · App.tsx App routes · backend Rust backend
Components 25
Android management app
- App routes
frontend/src/App.tsx - Connection settings
frontend/src/stores/settings.ts - Management pages
frontend/src/pages - Message composer
frontend/src/pages/MessagesPage.tsx - Workflow builder
frontend/src/components/WorkflowBuilder.tsx - API client
frontend/src/api/client.ts - On-device bridge
frontend/src/api/onDeviceBackend.ts - Local supervisor
android/app/src/main/java/com/telecore/app/TeleCoreBackendService.java
Backend runtime
- Rust backend
backend - REST endpoints
backend/src/api - SQLite database
backend/src/db.rs - Domain models
backend/src/models.rs - Automation engine
backend/src/automation/engine.rs - Scheduled tasks
backend/src/scheduler/runner.rs
Telegram messaging
- Telegram client
backend/src/bot/telegram.rs - Bot polling
backend/src/bot/polling.rs - Update processing
backend/src/services/update_processor.rs
Operations and integrations
- AI and knowledge
backend/src/services - Outgoing webhooks
backend/src/services/outgoing_webhooks.rs - Backup and migration
backend/src/api - Security and tokens
backend/src/security - MCP integration
backend/src/api/mcp.rs - Analytics and logs
backend/src/api
Other components
- Bot operator
- Telegram Bot API
Connections 23
- Bot operator → App routes: configures bots
- App routes → Management pages: routes to
frontend/src/App.tsx - Management pages → API client: requests backend
- Message composer → API client: sends messages
frontend/src/pages/MessagesPage.tsx - Workflow builder → API client: configures workflows
- Connection settings → On-device bridge: selects backend mode
frontend/src/api/onDeviceBackend.ts - On-device bridge → Local supervisor: controls local backend
- App routes → Rust backend: connects by URL
- Rust backend → REST endpoints: serves REST API
backend/src/automation/engine.rs - Rust backend → SQLite database: uses SQLite
backend/src/lib.rs - Bot polling → Telegram client: polls updates
- Telegram client → Telegram Bot API: calls Bot API
backend/src/bot/telegram.rs - Update processing → Automation engine: processes workflows
- Automation engine → Telegram client: sends actions
backend/src/automation/engine.rs - Scheduled tasks → Telegram client: runs scheduled tasks
backend/src/scheduler/runner.rs - REST endpoints → Backup and migration: offers backup and migration
- REST endpoints → AI and knowledge: offers AI and knowledge
backend/src/api/outgoing_webhooks.rs - REST endpoints → Outgoing webhooks: manages subscriptions
backend/src/api/outgoing_webhooks.rs - Outgoing webhooks → Telegram Bot API: sends webhook events
- REST endpoints → MCP integration: exposes MCP
- REST endpoints → Analytics and logs: offers analytics and logs
- REST endpoints → Security and tokens: applies security features
backend/src/api/notifications.rs - REST endpoints → Domain models: uses domain data
backend/src/api/notifications.rs