Files
SaveAny-Bot/README_zh.md
Krau 8b86330f5c feat: add rclone storage backend (#191)
* fix: update StoragePath method to return specific path for single file

* feat: add Rclone storage support with configuration and file operations

* docs: add Rclone support to documentation for configuration and usage
2026-01-30 13:34:29 +08:00

3.3 KiB

Save Any Bot

把 Telegram 上的文件转存到多种存储端

Release Date tag Build Status Stars Downloads Issues Pull Requests License

🎯 特性

  • 支持文档/视频/图片/贴纸…甚至还有 Telegraph
  • 破解禁止保存的文件
  • 批量下载
  • 流式传输
  • 多用户使用
  • 基于存储规则的自动整理
  • 监听并自动转存指定聊天的消息, 支持过滤
  • 在不同存储端之间转存文件
  • 集成 yt-dlp, 从所支持的网站下载并转存媒体文件
  • 集成 Aria2, 支持直链/磁力下载和转存
  • 使用 js 编写解析器插件以转存任意网站的文件
  • 存储端支持:
    • Alist
    • S3
    • WebDAV
    • 本地磁盘
    • Rclone
    • Telegram (重传回指定聊天)

快速开始

创建文件 config.toml 并填入以下内容:

[telegram]
token = "" # 你的 Bot Token, 在 @BotFather 获取
[telegram.proxy]
# 启用代理连接 telegram
enable = false
url = "socks5://127.0.0.1:7890"

[[storages]]
name = "本地磁盘"
type = "local"
enable = true
base_path = "./downloads"

[[users]]
id = 114514 # 你的 Telegram 账号 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

查看文档 以获取更多配置选项和使用方法.

赞助

本项目受到 YxVMNodeSupport 的支持.

如果这个项目对你有帮助, 你可以考虑通过以下方式赞助我:

鸣谢

社区和关于作者

  • 通知群组
  • 讨论区
  • 个人频道