krau/SaveAny-Bot
GitHub: krau/SaveAny-Bot
一个功能丰富的 Telegram 文件转存机器人,支持将各类媒体和文件批量、自动化地保存到多种存储后端,并绕过 Telegram 的保存限制。
Stars: 2234 | Forks: 228
#
Save Any Bot
**English** | [简体中文](./README_zh.md)
[](https://github.com/krau/saveany-bot/releases)
[](https://github.com/krau/saveany-bot/releases)
[](https://github.com/krau/saveany-bot/actions/workflows/build-release.yml)
[](https://github.com/krau/saveany-bot/stargazers)
[](https://github.com/krau/saveany-bot/releases)
[](https://github.com/krau/saveany-bot/issues)
[](https://github.com/krau/saveany-bot/pulls)
[](./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://t.me/ProjectSaveAny)
- [](https://github.com/krau/saveany-bot/discussions)
- [](https://t.me/acherkrau)标签:Alist, aria2, EVTX分析, Python, Rclone, S3, Telegram, Telegram Bot, WebDAV, yt-dlp, 云存储, 内容解密, 媒体下载, 存储, 开源, 批量下载, 数据可视化, 文件传输, 文件管理, 无后门, 日志审计, 流式传输, 漏洞探索, 网盘, 网络调试, 聊天监控, 自动保存, 自动化, 请求拦截