An open API service indexing awesome lists of open source software.

https://github.com/caamer20/telegram-drive

Turn your Telegram account into an unlimited, secure cloud storage drive. an Open-source desktop app built with Tauri, Rust, and React.
https://github.com/caamer20/telegram-drive

open-source react rust tauri telegram telegramapi typescript

Last synced: 1 day ago
JSON representation

Turn your Telegram account into an unlimited, secure cloud storage drive. an Open-source desktop app built with Tauri, Rust, and React.

Awesome Lists containing this project

README

          

# Telegram Drive

**Telegram Drive** is an open-source, cross-platform desktop application that turns
your Telegram account into an unlimited, secure cloud storage drive. Built with
**Tauri**, **Rust**, and **React**.

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
[![Platform](https://img.shields.io/badge/platform-Windows%20%7C%20MacOS%20%7C%20Linux-blue)]()
![GitHub Downloads (all assets, all releases)](https://img.shields.io/github/downloads/caamer20/Telegram-Drive/total?style=flat)
[![oosmetrics](https://api.oosmetrics.com/api/v1/badge/achievement/ae8e5a6b-e815-4799-a408-4a59980cf9c8.svg)](https://oosmetrics.com/repo/caamer20/Telegram-Drive)
[![oosmetrics](https://api.oosmetrics.com/api/v1/badge/achievement/029fb97b-a54a-4566-a1eb-aa1a5039065d.svg)](https://oosmetrics.com/repo/caamer20/Telegram-Drive)
[![oosmetrics](https://api.oosmetrics.com/api/v1/badge/achievement/2aa6f3f9-fd8a-4523-bd73-6625ee6a948a.svg)](https://oosmetrics.com/repo/caamer20/Telegram-Drive)

![Auth Screen](screenshots/AuthScreen.png)

## What is Telegram Drive?

Telegram Drive leverages the Telegram API to allow you to upload, organize, and manage files directly on Telegram's servers. It treats your "Saved Messages" and created Channels as folders, giving you a familiar file explorer interface for your Telegram cloud.

### Key Features

* **Unlimited Cloud Storage**: Utilizing Telegram's generous cloud infrastructure.
* **High Performance Grid**: Virtual scrolling handles folders with thousands of files instantly.
* **Auto-Updates**: Seamless updates for Windows, macOS, and Linux.
* **Media Streaming**: Stream video and audio files directly without downloading.
* **PDF Viewer:** Built-in PDF support with infinite scrolling for seamless document reading.
* **Drag & Drop**: Intuitive drag-and-drop upload and file management.
* **Thumbnail Previews**: Inline thumbnails for images and media files.
* **Folder Management**: Create "Folders" (private Telegram Channels) to organize content.
* **Shareable Links**: Generate direct download links with optional password protection and expiration, and revoke access anytime from the dashboard. Also supports copying native Telegram message links for files in public channels.
* **REST API for AI Integration**: Secure local API (off by default) with configurable port and API key auth. OpenAPI spec for seamless LLM and tool integration.
* **Proxy Support**: Native integration for SOCKS5 and MTProto proxies to bypass regional restrictions and secure your traffic.
* **VPN Optimizer**: Aggressive network tuning including bandwidth throttling, adjustable transfer chunk sizing, and adaptive keep-alives to ensure maximum stability on high-latency connections.
* **Privacy Focused**: API keys and data stay local. No third-party servers.
* **Cross-Platform**: Native apps for macOS (Intel/ARM), Windows, Linux and Android.

## Android (Pre‑built, Unsigned APK)

A pre-built **unsigned APK** is available for Android sideloading via the [v2.1.5-android release](https://github.com/caamer20/Telegram-Drive/releases/tag/Androidv2.1.5beta).

> [!WARNING]
> This APK is **not signed** and is **not available on the Google Play Store**. You must enable "Install from Unknown Sources" on your device to install it. This build contains **Google AdMob banner ads** to support development.

### How to Sideload

1. Download `Telegram-Drive-v2.1.0-beta.apk` from the [v2.1.5-android release](https://github.com/caamer20/Telegram-Drive/releases/tag/Androidv2.1.5beta).
2. On your Android device, go to **Settings → Apps → Special App Access → Install unknown apps** and allow your browser or file manager.
3. Open the downloaded APK and tap **Install**.
4. Enter your Telegram API credentials on first launch (same as the desktop app).

> [!NOTE]
> - **Compatibility**: Requires **Android 7.0 (API level 24)** or higher.
> - **Android 15+ Installation**: If you encounter blocks or security restrictions when installing on Android 15+ emulator/device, bypass it using ADB:
> ```bash
> adb install --bypass-low-target-sdk-block Telegram-Drive-v2.1.0-beta.apk
> ```
> - The Android build is a **community/beta release** compiled locally. The desktop app (Windows/macOS/Linux) remains the primary supported platform, built and signed automatically by GitHub CI.

---

## Screenshots

### Desktop App

| Dashboard | File Preview |
|-----------|--------------|
| ![Dashboard](screenshots/DashboardWithFiles.png) | ![Preview](screenshots/ImagePreview.png) |

| Grid View | Authentication |
|-----------|----------------|
| ![Dark Mode](screenshots/DarkModeGrid.png) | ![Login](screenshots/LoginScreen.png) |

| Audio Playback | Video Playback |
|----------------|----------------|
| ![Audio Playback](screenshots/AudioPlayback.png) | ![Video Playback](screenshots/VideoPlayback.png) |

| Auth Code Screen | Upload Example |
|------------------|-------------|
| ![Auth Code Screen](screenshots/AuthCodeScreen.png) | ![Upload Example](screenshots/UploadExample.png) |

| Folder Creation | Folder List View |
|-----------------|------------------|
| ![Folder Creation](screenshots/FolderCreation.png) | ![Folder List View](screenshots/FolderListView.png) |

### Android App

| Home Screen | Splash Screen | Dark Mode Folder View |
|-------------|---------------|-----------------------|
| ![Home Screen](screenshots/AndroidHomeScreenWithIcon.png) | ![Splash Screen](screenshots/AndroidTelegram-DriveSplash.png) | ![Dark Mode Folder View](screenshots/AndroidDarkModeFolderView.png) |

| Folder List | Transfer Queue | Settings Page |
|-------------|----------------|---------------|
| ![Folder List](screenshots/AndroidFolderList.png) | ![Transfer Queue](screenshots/AndroidTransferQue.png) | ![Settings Page](screenshots/AndroidSettingsPage.png) |

## Tech Stack

* **Frontend**: React, TypeScript, TailwindCSS, Framer Motion
* **Backend**: Rust (Tauri), Grammers (Telegram Client)
* **Build Tool**: Vite

## Getting Started

### Prerequisites

* **Node.js (v18+)**: [Download here](https://nodejs.org/)
* **Rust (latest stable)**: Required to compile the Tauri backend. Install via [rustup](https://rustup.rs/):
* **macOS/Linux:** `curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh`
* **Windows:** Download and run `rustup-init.exe` from [rustup.rs](https://rustup.rs/)
* *Verify installation:* run `rustc --version` and `cargo --version` in your terminal.
* **OS-Specific Build Tools for Tauri**:
* **macOS:** Xcode Command Line Tools (`xcode-select --install`).
* **Linux (Ubuntu/Debian):** `sudo apt update && sudo apt install libwebkit2gtk-4.1-dev build-essential curl wget file libxdo-dev libssl-dev libayatana-appindicator3-dev librsvg2-dev`
* **Windows (CRITICAL):** You **must** install the [Visual Studio Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools/). During installation, select the **"Desktop development with C++"** workload. Without this, you will get a `linker 'link.exe' not found` error.
* **Windows (WebView2):** Windows 10/11 users usually have this pre-installed. If not, download the [WebView2 Runtime](https://developer.microsoft.com/en-us/microsoft-edge/webview2/#download-section).
* *Reference:* See the official [Tauri v2 Prerequisites Guide](https://v2.tauri.app/start/prerequisites/) for detailed instructions.
* **Telegram API Credentials**: You need your own API ID and API Hash to communicate with Telegram's servers.
1. Log into [my.telegram.org](https://my.telegram.org).
2. Go to "API development tools" and create a new application to get your `api_id` and `api_hash`.

> [!NOTE]
> **First-run Compile Time:** The initial build (`npm run tauri dev` or `npm run tauri build`) will download and compile over 300 Rust crates. This process can take **5 to 15 minutes** depending on your hardware. Subsequent builds will be much faster.

> [!TIP]
> **NPM Vulnerabilities:** You may see vulnerability warnings during `npm install`. These are usually related to build tools and dev dependencies. You can optionally run `npm audit fix`, but it is not strictly required to run the app.

### Installation

1. **Clone the repository**
```bash
git clone https://github.com/caamer20/Telegram-Drive.git
cd Telegram-Drive
```

2. **Install Dependencies**
```bash
cd app
npm install
```

3. **Run in Development Mode**
```bash
npm run tauri dev
```

4. **Build/Compile**
```bash
npm run tauri build
```

## Open Source & License

This project is **Free and Open Source Software**. You are free to use, modify, and distribute it.

Licensed under the **MIT License**.

---
*Disclaimer: This application is not affiliated with Telegram FZ-LLC. Use responsibly and in accordance with Telegram's Terms of Service.*

If you're looking for a version of this app that's optimized for VPNs check out this repo:
https://github.com/caamer20/Telegram-Drive-ForVPNs





Donate with PayPal

paypal.me/Caamer20




Donate LTC


ltc1q6wkr5ac4u0pxx4hx7xgwn0gsaku25ws0df73rp




Donate BTC


bc1q5pt7m2fk6w0dzsnf6vvd5k6nw5k44785286ujy