简介
基于 Teldrive 的 Telegram 云存储网关,将 Telegram 频道变成无限网盘,提供 Web UI 和 API 访问,适合需要大容量个人云存储的用户。
原始描述
A high-performance Telegram Cloud Storage solution using Teldrive. Turns Telegram into an unlimited cloud drive with a local API/UI.
中文使用说明 来自收录源
核心用法
Telegram Cloud Storage 是 Teldrive 的轻量级封装 Skill,将 Telegram 转化为无限容量的个人云存储后端。部署后,用户可获得:
- Web 管理界面:直观的文件浏览、上传、下载操作
- REST API:标准化接口供第三方应用调用
- AI 原生客户端:内置
client.py,支持 Agent 执行list/upload/download等程序化文件操作
部署流程简洁:配置 PostgreSQL 17+ 数据库并启用 pgroonga 扩展 → 运行交互式配置脚本获取 Telegram API 凭证 → 启动服务即可在本地 localhost:8080 访问。
显著优点
- 成本优势:利用 Telegram 免费消息存储空间,理论上无限容量,零月费
- 性能优异:核心引擎 Teldrive 采用 Go 编写,针对高并发文件传输优化
- 生态成熟:Teldrive 为 GitHub 2.8k+ Stars 的活跃开源项目,社区维护积极
- 隐私可控:数据存储于个人 Telegram 账号,非第三方商业云服务,配合本地部署实现数据主权
- AI 就绪:专用 Python 客户端让大语言模型可直接操作文件,无需人工介入
潜在局限
- 依赖门槛:需自行维护 PostgreSQL 数据库及 pgroonga 扩展,对非技术用户不够友好
- 单点依赖:文件可用性与 Telegram 账号状态强绑定,存在平台政策风险
- 无原生校验:二进制文件从 GitHub Releases 动态下载,当前未内置 SHA256/GPG 校验(建议用户手动验证)
- 功能边界:专注于文件存储,无协作编辑、版本控制等高级云盘功能
适合人群
- 技术爱好者与开发者,具备 Linux/数据库基础运维能力
- 追求隐私、抗拒商业云订阅的个人用户
- 需为 AI Agent 构建低成本持久化存储的自动化工作流设计者
- Telegram 重度用户,希望统一管理分散的媒体文件
常规风险
- 凭证管理:Telegram App ID/Hash 及 JWT Secret 若配置不当存在泄露风险,建议配置文件设 600 权限
- 合规灰色地带:大量使用 Telegram 作为存储后端可能触及平台服务条款
- 数据持久性:Telegram 账号封禁将导致数据不可访问,需额外备份策略
- 网络依赖:文件上传下载速度受 Telegram 服务器地理位置及网络质量影响
技能正文
name: telegram-cloud-storage description: A high-performance Telegram Cloud Storage solution using Teldrive. Turns Telegram into an unlimited cloud drive with a local API/UI. metadata: {"openclaw":{"requires":{"bins":["teldrive"]},"install":[{"id":"binary","kind":"exec","command":"./scripts/install_binary.sh","label":"Download Teldrive Binary"}]}}
Telegram Cloud Storage (Teldrive Edition)
This skill runs Teldrive, a powerful utility that organizes Telegram files and provides a high-speed API/UI for accessing them.
Features
- Unlimited Storage: Uses Telegram as a backend.
- High Performance: Written in Go, optimized for speed.
- UI & API: Includes a web interface and REST API.
- AI-Native Client: Includes
client.pyfor agent-based file operations.
Credits
This skill is a wrapper for Teldrive by divyam234. All credit for the core engine goes to the original authors.
Requirements
- PostgreSQL Database: Version 17+ recommended.
- pgroonga Extension: Required for file search within Postgres.
- Telegram API: App ID and Hash from my.telegram.org.
Installation
1. Database Setup
Ensure Postgres is running and the pgroonga extension is installed.
CREATE DATABASE teldrive;
\c teldrive
CREATE EXTENSION IF NOT EXISTS pgroonga;
2. Configure
Run the setup script to generate config/config.toml:
./scripts/setup.sh
3. Start Server
./scripts/manage.sh start
Agent Usage
The skill includes a Python client for programmatic access.
Environment Variables
TELDRIVE_TOKEN: Your JWT token (get this from the UI orconfig/token.txtafter login).TELDRIVE_SESSION_HASH: Your Telegram session hash (found in theteldrive.sessionstable).
Commands
# List files
python3 scripts/client.py list /
# Upload a file
python3 scripts/client.py upload local_file.txt /remote/path
# Download a file
python3 scripts/client.py download <file_id> local_save_path
Directory Structure
bin/: Teldrive binary.config/: Configuration templates and generated config.scripts/: Setup, management, and client scripts.logs/: Application logs.
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。
其他来源收录
同一技能在不同目录的原始页面: