Case study · Web platform

TCloud

Encrypted cloud storage that keeps your files in private Telegram channels, with a web app, share links and an API on top.

RoleDesigner and developer
Year2026
StackFastAPI, Telethon, Nginx
StatusLive at tcloudmm.com ↗

The idea

Telegram already stores large files reliably, but it's a chat app, not a drive. TCloud puts a real drive on top of it: folders, sharing, quotas and encryption, so the storage channel only ever holds ciphertext.

What I built

  1. Encrypted before it leavesEvery file gets its own AES-256 key before upload and is SHA-256 verified on download.
  2. A real driveFolders, inline previews, per-user storage quotas and quota warnings.
  3. SharingPublic share links for single files and shared folders.
  4. Accounts and adminEmail verification, password reset and a full admin panel.
  5. REST APIAPI key authentication with public docs, so other tools can store and fetch files.

The hard parts

  1. Telegram as a storage backendFiles live in a private channel, and a second channel receives automated hourly backups, so one channel is never the only copy.
  2. Sharing without leakingShare links use long random tokens, and a folder link only serves files inside that folder. Password-reset tokens are stored hashed, work once and expire in an hour.
  3. Knowing when it breaksA health endpoint reports the Telegram connection, uptime and storage. Uptime Kuma polls it and alerts me on Telegram if anything drops.
  4. A locked-down serverThe app listens only on localhost behind Nginx with rate limiting and CSP headers, runs under systemd, and refuses to start without its secrets.