How akhil0924/telefilemanager works
TeleUpload manages files in Telegram forum topics and channels through a React console backed by an aiohttp service. The main workflow is sign in, browse indexed chats/topics and files, review an upload, then upload to Telegram; public download links can stream files independently with byte-range support. Telegram remains the media source of truth while SQLite stores the searchable metadata index. The README also documents preview, thumbnail caching, upload-task controls and chat/topic management. Several route and service details are unsampled, so links for those capabilities are limited to relationships stated in the README.
Main entry points: App.jsx Workspace UI · routes.py HTTP routes · app.py App lifecycle · api.js API client
Components 21
Management console
- Workspace UI
frontend/src/App.jsx - API client
frontend/src/api.js - File browser
frontend/src/components/FileBrowser.jsx - Topic sidebar
frontend/src/components/TopicSidebar.jsx - Upload review
frontend/src/components/UploadReviewModal.jsx - Upload activity
frontend/src/components/UploadActivityArea.jsx - File preview
frontend/src/components/FilePreviewModal.jsx - File thumbnail
frontend/src/components/FileThumbnail.jsx - Format helpers
frontend/src/utils/format.js
HTTP service
- App lifecycle
backend/app.py - HTTP routes
backend/routes.py - Runtime configuration
backend/config.py
Metadata and security
- SQLite index
backend/db.py - Token and range security
backend/security.py
Telegram integration
- Sync and upload service
backend/telegram_service.py - Telegram
Media delivery
- Preview processing
backend/preview.py - Media streaming
backend/routes.py - Thumbnail cache
backend/routes.py
Other components
- Manager
- Public downloader
Connections 30
- Manager → Workspace UI: uses console
README.md - Workspace UI → API client: requests data
frontend/src/App.jsx - Workspace UI → File browser: renders
frontend/src/App.jsx - Workspace UI → Topic sidebar: renders
frontend/src/App.jsx - Workspace UI → Upload review: opens
frontend/src/App.jsx - Workspace UI → Upload activity: renders
frontend/src/App.jsx - Workspace UI → File preview: opens
frontend/src/App.jsx - File browser → File thumbnail: renders
frontend/src/components/FileBrowser.jsx - File preview → File thumbnail: renders
frontend/src/components/FilePreviewModal.jsx - Upload review → Format helpers: normalizes names
frontend/src/components/UploadReviewModal.jsx - API client → Format helpers: normalizes names
frontend/src/api.js - API client → HTTP routes: calls API
frontend/src/api.js - App lifecycle → Runtime configuration: receives config
backend/app.py - App lifecycle → SQLite index: initializes
backend/app.py - App lifecycle → Sync and upload service: starts service
backend/app.py - App lifecycle → HTTP routes: registers routes
backend/app.py - HTTP routes → SQLite index: queries index
backend/routes.py - HTTP routes → Sync and upload service: manages topics
backend/routes.py - HTTP routes → Token and range security: verifies sessions
backend/routes.py - HTTP routes → Preview processing: builds previews
backend/routes.py - Sync and upload service → SQLite index: updates index
backend/telegram_service.py - Sync and upload service → Telegram: syncs and transfers
README.md - HTTP routes → Telegram: changes topics
backend/routes.py - Public downloader → Media streaming: requests download
README.md - Media streaming → SQLite index: looks up file
backend/routes.py - Media streaming → Token and range security: checks link and range
README.md - Media streaming → Telegram: streams media
README.md - API client → Thumbnail cache: requests thumbnail
README.md - Thumbnail cache → Telegram: fetches thumbnail
README.md - File preview → Media streaming: opens inline media
frontend/src/components/FilePreviewModal.jsx