Skip to content

Suggestion: Telegram-backed E2EE vault instead of Saved Messages storage #33

@imissapixel

Description

@imissapixel

Hello!

I found this project very interesting, as this reminds me of a project that used YouTube videos as a data storage solution. However, I’m concerned that relying on Telegram Saved Messages as the storage layer may not be the best long-term approach. Building a desktop friendly storage system on top of Saved Messages goes beyond the original intent of that feature, and it may not provide the safeguards this use case deserves.

I’ve been exploring a different direction and wanted to ask whether you would be open to a PR draft for it:

The approach treats Telegram as an untrusted storage backend rather than as the source of security. It does not rely on Telegram-native E2EE or Secret Chats. Instead, the app encrypts files, folder metadata, and vault metadata locally before uploading ciphertext blobs to Telegram.

The idea includes:

  • Using one private Telegram channel as the ciphertext bucket instead of Saved Messages
  • Representing folders as logical app records inside an encrypted vault manifest
  • Unlocking the vault locally with a password-derived key that unwraps the vault master key
  • Encrypting file chunks with per-file keys
  • Supporting upload, download, delete, move, folder creation, search, previews, thumbnails, PDF viewing, and audio/video streaming through the vault layer
  • Decrypting to a local cache only when needed for previews, streaming, or downloads
  • Preserving Telegram sessions when the user opts to stay logged in

In other words, the product direction would shift toward an encrypted Telegram-backed vault/drive, rather than a plain file manager built on top of Saved Messages. The design is loosely inspired by tools like Cryptomator and Ente Photos: the storage provider is treated as untrusted, and user data is encrypted locally before it is uploaded. The implementation here is different, since Telegram acts as the storage backend and the app manages its own encrypted vault manifest, file keys, and ciphertext blobs.

Would you be open to reviewing a PR draft in this direction, or would you prefer to keep the project scoped closer to the current Saved Messages-based model?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions