krau/SaveAny-Bot

GitHub: krau/SaveAny-Bot

一个功能丰富的 Telegram 文件转存机器人,支持将各类媒体和文件批量、自动化地保存到多种存储后端,并绕过 Telegram 的保存限制。

Stars: 2234 | Forks: 228

# Save Any Bot **English** | [简体中文](./README_zh.md) [![发布日期](https://img.shields.io/github/release-date/krau/saveany-bot?label=release)](https://github.com/krau/saveany-bot/releases) [![标签](https://img.shields.io/github/v/tag/krau/saveany-bot.svg)](https://github.com/krau/saveany-bot/releases) [![构建状态](https://img.shields.io/github/actions/workflow/status/krau/saveany-bot/build-release.yml)](https://github.com/krau/saveany-bot/actions/workflows/build-release.yml) [![Stars](https://img.shields.io/github/stars/krau/saveany-bot?style=flat)](https://github.com/krau/saveany-bot/stargazers) [![下载量](https://img.shields.io/github/downloads/krau/saveany-bot/total)](https://github.com/krau/saveany-bot/releases) [![Issues](https://img.shields.io/github/issues/krau/saveany-bot)](https://github.com/krau/saveany-bot/issues) [![Pull Requests](https://img.shields.io/github/issues-pr/krau/saveany-bot?label=pr)](https://github.com/krau/saveany-bot/pulls) [![License](https://img.shields.io/github/license/krau/saveany-bot)](./LICENSE)
## 🎯 功能 - 支持文档 / 视频 / 图片 / 贴纸……甚至是 [Telegraph](https://telegra.ph/) - 绕过“限制保存内容”的媒体 - 批量下载 - 流式传输 - 多用户支持 - 根据存储规则自动整理文件 - 监控指定聊天并自动保存消息,支持过滤器 - 在不同的存储后端之间传输文件 - 集成 yt-dlp 以下载并保存来自 1000+ 网站的媒体 - 集成 Aria2 以下载来自 URL/magnet 的文件并保存到存储中 - 编写 JS 解析器插件以保存来自几乎任何网站的文件 - 存储后端: - Alist - S3 - WebDAV - 本地文件系统 - Rclone (通过命令行) - Telegram (重新上传到指定聊天) ## 📦 快速开始 创建一个包含以下内容的 `config.toml` 文件: ``` lang = "en" # Language setting, "en" for English [telegram] token = "" # Your bot token, obtained from @BotFather [telegram.proxy] # 为 Telegram 启用代理 enable = false url = "socks5://127.0.0.1:7890" [[storages]] name = "Local Disk" type = "local" enable = true base_path = "./downloads" [[users]] id = 114514 # Your Telegram account id storages = [] blacklist = true ``` 使用 Docker 运行 Save Any Bot: ``` docker run -d --name saveany-bot \ -v ./config.toml:/app/config.toml \ -v ./downloads:/app/downloads \ ghcr.io/krau/saveany-bot:latest ``` 请[**阅读文档**](https://sabot.unv.app/en/)以获取更多配置选项和使用方法。 ## 致谢 - [gotd](https://github.com/gotd/td) - [TG-FileStreamBot](https://github.com/EverythingSuckz/TG-FileStreamBot) - [gotgproto](https://github.com/celestix/gotgproto) - [tdl](https://github.com/iyear/tdl) - 所有的依赖项、贡献者、赞助者和用户。 ## 联系方式 - [![群组](https://img.shields.io/badge/ProjectSaveAny-Group-blue)](https://t.me/ProjectSaveAny) - [![讨论区](https://img.shields.io/badge/Github-Discussion-white)](https://github.com/krau/saveany-bot/discussions) - [![个人频道](https://img.shields.io/badge/Krau-PersonalChannel-cyan)](https://t.me/acherkrau)
标签:Alist, aria2, EVTX分析, Python, Rclone, S3, Telegram, Telegram Bot, WebDAV, yt-dlp, 云存储, 内容解密, 媒体下载, 存储, 开源, 批量下载, 数据可视化, 文件传输, 文件管理, 无后门, 日志审计, 流式传输, 漏洞探索, 网盘, 网络调试, 聊天监控, 自动保存, 自动化, 请求拦截