How manavchaudhary1/telefetch works
Main Components
a) Client Layer:
• Web Interface (Vaadin-based frontend)
• REST API endpoints
b) Application Layer:
• Controllers
• Services
• Models
• Configuration
c) External Integration Layer:
• Telegram TDLib Integration
• File System Integration
Client Interface (Top Layer)
• Web UI (Vaadin Views)
• REST API Controllers
Application Core (Middle Layer)
• Controllers Package:
• AuthorizationController
• ChatHistoryController
• DownloadFileController
• GroupIdController
• UserController
• Service Layer:
• ChatHistoryService
• DownloadService
• GroupIdService
• UserService
• Model Layer:
• ChatHistoryTemplate
• ChatResponse
• GroupInfo
• MessageInfo
External Integration (Bottom Layer)
• TDLib Integration
• File System Storage
Dependencies and Connections
• Web UI → Controllers
• Controllers → Services
• Services → TDLib Integration
• Services → File System
• REST API → Services
Technical Details
Annotations for:
• Spring Boot 3.3.0
• TDLib 1.8.29
• Java 21 Runtime
• Required System Libraries (OpenSSL, zlib)
Authentication Flow
User → Authorization Controller → TDLib
Download Flow
User → Download Controller → Download Service → File System
Chat History Flow
User → Chat History Controller → Chat History Service → TDLib
Configuration Elements
A section showing:
• API Configuration (api_id, api_hash)
• System Configuration
• Database Encryption
Level of Detail:
• Major components
• Primary data flows
• Integration points
• System boundaries
This system design should clearly show how TeleFetch integrates with Telegram's TDLib while providing both web-based and API-based interfaces for users to interact with the system.