Telegram-Drive README

项目的 README,来自 github.com/caamer20/Telegram-Drive。合并为一个 markdown 文件:README.md。

Telegram Drive logo

Telegram Drive

A local-first file workspace powered by your own Telegram account

Organize, transfer, preview, stream, sync, and share the files you keep in Saved Messages and Telegram channels—on Windows, macOS, Linux, Android, and Google TV.

Latest release Platform GitHub Downloads (all assets, all releases) Release oosmetrics oosmetrics oosmetrics

Download for desktop · Download Android 4.1.3 · Product website · Changelog

Telegram Drive desktop dashboard

Telegram Drive turns Telegram's familiar file storage into a focused, desktop-style workspace. The app connects directly to Telegram with credentials you provide; it does not run a separate file-storage or relay service. Every application feature is available without payment.

[!IMPORTANT] Telegram Drive is an independent project and is not affiliated with Telegram FZ-LLC. Files remain subject to Telegram's account, service, and per-file limits. Telegram Drive should not be treated as literally unlimited storage or as the only backup of important data.

Contents

At a glance

Platforms Windows, macOS Intel, macOS Apple Silicon, Linux, Android, and Google TV
Storage model Saved Messages is the home location; Telegram channels can be presented as folders
Transfers Files, folders, drag and drop, remote URLs, durable queues, background operation, and retry controls
Media Image preview, PDF viewing, audio playback, video streaming, thumbnails, and archive tools
Desktop integrations Folder Sync, local REST API, WebDAV, local share links, tray controls, and native notifications
Privacy Local configuration and caches, opt-in crash reporting, loopback-only local servers, and no separate file relay
Languages 24 selectable locales plus automatic system-language selection
Price Every feature is free; an optional one-time $5 supporter license removes sponsor placements for life on up to three supported devices total

Download and install

Desktop 4.2.1 and Android / Google TV 4.1.3 use separate version lines. The desktop release does not update or include Android or Google TV. Downloads are listed below.

Platform Download Notes
Windows x64 Installer Includes the required Microsoft Visual C++ runtime setup
macOS — Apple Silicon DMG For M-series Macs
macOS — Intel DMG For Intel-based Macs
Linux x64 AppImage · Debian · RPM · Arch Choose your distribution; Arch updates remain managed by pacman
Android phones and tablets Signed universal APK Android 7.0 or newer; supports ARM64, ARMv7, x86, and x86_64
Android TV / Google TV Signed TV-compatible APK The same universal package includes the TV launcher and remote navigation

The new desktop workspace adds collections, saved searches, a media timeline, Continue Watching, offline trip packs, transfer activity, storage controls, cleanup, and sync previews. Android 4.1.3 is available for phones, tablets, and TV. Install the signed APK over your existing app to preserve its data and activation.

Desktop release assets also include updater/signature sidecars where applicable. Download installers only from this repository's GitHub Releases page. See the Linux packaging and rendering guide for Arch installation, updater ownership, diagnostics, and AppImage safe mode.

First-time setup

Telegram requires third-party clients to use an application API ID and API hash. Telegram Drive does not provide shared credentials.

  1. Sign in at my.telegram.org and open API development tools.
  2. Create a Telegram application and copy its api_id and api_hash.
  3. Install and open Telegram Drive, then enter those credentials locally.
  4. Sign in with your phone number and the code from Telegram. On desktop, you can also scan a QR code. Enter your Telegram cloud password if prompted.
  5. Open Saved Messages or select/create Telegram channels to use as folders.

[!WARNING] Treat the API hash, Telegram login codes, session data, encryption credentials, REST keys, and WebDAV links as secrets. Do not paste them into issues, logs, screenshots, or support messages.

How it works

Telegram Drive uses Telegram's MTProto API for authentication and file operations:

The application caps a Telegram object at exactly 2,000,000,000 bytes. Encrypted files need additional envelope space, so their maximum original plaintext size is slightly lower.

Features

File management and organization

Reliable transfers and desktop operation

Viewing, playback, and archives

Some media depends on operating-system codec support or FFmpeg. Supported protected audio, video, and PDF content can use authenticated local byte-range streaming while the vault is unlocked, without publishing a persistent plaintext copy. See encrypted-file limitations.

Sharing and local integrations

[!NOTE] REST, WebDAV, and Telegram Drive share links are served by the running desktop application. They are not hosted public internet links. Keep the app open, do not forward its local ports, and protect every generated password, key, and capability URL.

Personalization, language, and network controls

Screenshots

Screenshots show representative workflows; small details may change between releases.

Desktop

Folder and list management Video playback
Telegram Drive desktop folder list Telegram Drive desktop video player

Android

Files Transfer queue
Telegram Drive Android file list Telegram Drive Android transfer queue

Additional desktop and mobile captures are available in the screenshots directory.

Folder Sync (desktop)

Folder Sync is an opt-in, bidirectional mapping between a local directory and one Telegram channel on Windows, macOS, or Linux. It compares three states—the current local tree, the current remote tree, and the last successfully synced tree—before changing either side.

Safety behavior includes:

Folder Sync is disabled until enabled in Settings → Folder Sync. Read the Folder Sync guide before mapping an important directory, and keep a separate tested backup.

Optional client-side encryption (beta, format frozen)

See the frozen format specification and recovery drill.

Telegram Drive includes opt-in encrypted transfers using the versioned TDENC2 envelope. Standard uploads remain the default. Encryption can be selected as a default for future uploads or chosen for an individual upload.

Mode Protection Required to unlock
Standard Existing plaintext Telegram upload Nothing
Vault Encrypts with a key held in the local encrypted vault Unlocked vault
File passphrase Adds a passphrase slot to the individual file File passphrase
Vault + file passphrase Adds both vault and per-file passphrase access Any supported valid slot

The implementation provides streaming XChaCha20-Poly1305 encryption before upload, authenticated streaming downloads, optional protection of the original filename and MIME type, vault auto-lock controls, recovery-bundle export/import, per-file state badges, and encryption-aware transfer queues.

[!CAUTION] Telegram Drive cannot recover, reset, or reconstruct a lost vault passphrase, file passphrase, encryption key, or unusable recovery bundle. Protect and test your recovery material and keep an independent backup of important files. Lost credentials or damaged recovery material can make encrypted data permanently unrecoverable.

The encryption design and implementation have not received an independent security audit. Use isolated test data first. This frozen-format beta is not a substitute for a tested backup strategy.

Current encrypted-file limitations

The following operations fail closed for encrypted objects while retaining their normal behavior for standard files:

TDENC2-protected audio, video, and PDF content can stream in supported in-app viewers while the vault is unlocked. The session-scoped credential is revoked when the vault locks, and the app does not publish a persistent plaintext copy. Download and authenticate other encrypted files before opening them in another application.

Privacy and security

Read the complete Privacy Policy, WebDAV guide, and REST API reference.

Languages

Telegram Drive supports a System language preference and these 24 selectable locales:

English Spanish Russian Ukrainian
Polish Persian Urdu Malay
Simplified Chinese Traditional Chinese French Italian
Arabic Brazilian Portuguese German Hindi
Bengali (Bangladesh) Indonesian Filipino (Philippines) Turkish
Thai (Thailand) Japanese Korean Vietnamese

Locale selection and formatting are production-supported. Authentication, encryption, desktop supporter copy and visible data arrays use canonical translations, and the eleven large locales have zero copied-English findings. Mobile follow-up changes remain local under the owner’s pre-commit hook. Noncritical English copy and full native-language, legal-copy, RTL, long-string, CJK and device review remain outstanding; see the measured locale review.

Optional $5 lifetime ad-free supporter license

Every Telegram Drive feature is available to non-paying users. Supported desktop and Android builds offer an optional $5.00 USD Lifetime Ad-Free Supporter License that removes sponsor placements on up to three supported Windows, macOS, Linux, or Android devices in total after one verified PayPal payment.

[!WARNING] Save the recovery code shown after activation. Payment alone does not bypass verification. Refunds are not automatic or guaranteed except where required by law. A refund, payment reversal, chargeback, or upheld dispute revokes the associated ad-free entitlement. Read the Supporter Terms before paying.

Android and Google TV (signed APK)

The Android build is currently distributed separately from the desktop release as a signed sideload release. It is not available through Google Play.

  1. Open the Android / Android TV 4.1.3 release.
  2. Download the signed universal Android APK listed in that release.
  3. On Android, allow Install unknown apps for the browser or file manager you used.
  4. Open the APK and choose Install.
  5. Enter your own Telegram API ID and API hash on first launch.

Android requirements and notes:

Local REST API and WebDAV

Both integrations are desktop-only, disabled by default, and loopback-only.

Integration Default address Authentication Access
REST API http://127.0.0.1:8550/api/v1 X-API-Key header File/folder operations, bulk actions, storage data, thumbnails, and media metadata
WebDAV http://127.0.0.1:8551/dav/<private-token>/ One-time capability URL Read-only by default; writes require explicit opt-in

Do not expose these ports to a LAN or the internet. See the REST API endpoint reference and WebDAV guide for setup, security behavior, examples, and limitations.

Documentation

User documentation

Document Purpose
Changelog Release notes, compatibility information, and upgrade history
Privacy Policy Local data, Telegram data flow, crash reporting, sponsors, sharing, and supporter privacy
Incident and release recovery Operational owners, containment, safe recovery and evidence for resuming release
Portable organization backup design Proposed encrypted format, merge preview and backward-compatible restore acceptance
Security Policy Private vulnerability reporting, redaction guidance, and responsible testing boundaries
Folder Sync guide Sync safety model, limits, conflict resolution, and integration behavior
WebDAV guide Setup instructions for macOS, Windows, and Linux clients
REST API reference Authentication, endpoints, request examples, and error responses
Linux packaging guide Linux formats, Arch installation, rendering safe mode, diagnostics, and release safeguards
Linux/Arch implementation plan Design decisions, compatibility rules, release gates, acceptance matrix, and rollback
Supporter Terms Activation, recovery, device allowance, refunds, availability, and privacy

Maintainer and release documentation

Document Purpose
Supporter license invariants Protected $5 lifetime-license compatibility contract and required verification
Supporter service operations Worker, PayPal, D1, secure configuration, and release checks
Supporter backup and recovery D1 backup provisioning, restore drills, and production recovery
Android and Google TV release runbook Signing, packaging, acceptance, and sideload-release checks
Desktop code signing macOS notarization and Windows Authenticode settings, and first-signed-release acceptance

Build from source

Prerequisites

Common requirements:

Install and run

git clone https://github.com/caamer20/Telegram-Drive.git
cd Telegram-Drive/app
npm ci
npm run tauri dev

The first run downloads and compiles the Rust dependency graph and may take several minutes. Later builds reuse Cargo's compilation cache.

Create release bundles with:

cd app
npm run tauri build

On Windows, the build scripts download and validate Microsoft's signed Visual C++ Redistributable before creating the NSIS installer.

Validation

Behavioral tests are end-to-end journeys; there are no unit suites. Run the relevant checks from app/ before submitting changes:

npm run build:verify
npm test
npm run i18n:check
cd src-tauri
cargo fmt --all -- --check
cargo clippy --locked --features native-e2e --lib --all-targets -- -D warnings
cargo test --locked --features native-e2e --test native_e2e

node scripts/run-e2e.cjs from the repository root runs every host suite. See TESTING.md for what each suite covers and what still needs installed-app or device acceptance.

The application is built with Tauri 2, Rust, React 19, TypeScript, Tailwind CSS 4, TanStack Query/Virtual, SQLite, Tokio, Actix Web, Grammers, PDF.js, HLS.js, and MP4Box.

Support and community

Direct cryptocurrency tips help support development but do not activate the lifetime ad-free entitlement:

Donate Litecoin

ltc1q6wkr5ac4u0pxx4hx7xgwn0gsaku25ws0df73rp

Donate Bitcoin

bc1q5pt7m2fk6w0dzsnf6vvd5k6nw5k44785286ujy


Telegram Drive is not affiliated with Telegram FZ-LLC. Use the application responsibly and in accordance with Telegram's terms and applicable law.

TV field navigation

With TV directional navigation, arrows edit a focused native field. After finishing an edit (or closing a native select picker), press Escape to return that field to directional navigation; the next arrow moves focus to another control. Enter resumes editing. A second Escape while already in navigation mode keeps the normal dialog-close behavior. Browser Escape is verified; physical Google TV Back event delivery and remote acceptance remain unrun.

Telegram-Drive (caamer20/Telegram-Drive)

正在搜索数据库…

这是什么?Telegram Drive 是一款本地优先的桌面和移动应用(基于 Tauri、Rust 和 React 构建),它能把你自己 Telegram 账号的收藏夹和频道变成一个专注的文件工作区,用于整理、传输、预览、流式播放、同步和分享文件。
这是独立的云存储服务,还是只是我自己 Telegram 账号的客户端?它只是一个客户端:应用使用你提供的凭据直接连接 Telegram,不运行自己的文件存储或中继服务器。收藏夹会成为主要存储位置,Telegram 频道也可以当作文件夹使用。
我该如何让它运行起来?从 GitHub Releases 页面下载适用于你平台的预编译安装包(Windows 为 NSIS 安装程序,macOS 为 dmg,Linux 为 AppImage/deb/rpm/pkg,Android 为已签名的 APK),然后完成首次设置:填写你自己的 Telegram API 凭据,并用手机号、登录验证码或二维码登录。
我需要自己的 Telegram API 凭据吗?需要。Telegram 要求第三方客户端提供自己的应用 API ID 和 API hash,这些需要从 my.telegram.org 获取;Telegram Drive 不提供共享凭据。
文件大小有限制吗?它可以作为可靠的备份吗?每个 Telegram 对象的大小上限正好为 2,000,000,000 字节(加密文件因封装开销,可容纳的明文略少)。应用还明确提醒,不应把它当作无限存储,也不应作为重要数据唯一的备份。
它支持哪些平台?桌面版支持 Windows、macOS(Intel 和 Apple Silicon)和 Linux,另外还提供侧载安装的 Android/Google TV 预览版应用。
我的数据和凭据会怎样?应用设置、缓存、队列和同步状态都保存在本地设备上;崩溃报告为可选开启;本地的 REST/WebDAV 服务器只监听回环地址,不涉及任何单独的文件中继。
什么是文件夹同步?一种可选开启的双向映射,将本地目录与一个 Telegram 频道对应起来。在修改任何一端之前,它会比较本地、远端和上次同步的状态;冲突处理提供“保留本地”“保留远端”“两者都保留”选项,并带有大规模删除保护。
可选的加密是如何工作的?TDENC2 是一项 alpha 功能,它在上传前使用流式 XChaCha20-Poly1305 在本地加密文件,可通过保险库密钥和/或每个文件的口令解锁;该功能尚未经过独立的安全审计,丢失的口令无法找回。
我能像挂载网络驱动器一样挂载我的 Telegram 文件吗?可以。应用可以开启可选的本地 WebDAV 服务器,供兼容的文件管理器挂载;此外还提供本地 REST API,用于以编程方式操作文件、文件夹和媒体。
为什么要用 Telegram,而不是专门的云服务?它在你自己 Telegram 账号已有的存储之上,构建了一套类桌面文件管理器的文件管理、同步、流式播放和分享功能,所有功能免费,也无需运行单独的服务器。
作者
caamer20
大小
154.4 MB
星标
5.8K
时长
10个月
提交 · 90 天