SaveAny-Bot

command module
v0.38.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 23, 2025 License: AGPL-3.0 Imports: 4 Imported by: 0

README

Save Any Bot

简体中文 | English

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

Release Date tag Build Status Stars Downloads Issues Pull Requests License

🎯 Features

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

📦 Quick Start

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

[telegram]
token = "" # 你的 Bot Token, 在 @BotFather 获取
[telegram.proxy]
# 启用代理连接 telegram, 当前只支持 socks5
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

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

Sponsors

本项目受到 YxVMNodeSupport 的支持.

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

Contributors

krau
Krau
Silentely
Abner
TG-Twilight
Simon Twilight
ysicing
缘生
AHCorn
安和

Thanks

Contact

  • Group
  • Discussion
  • PersonalChannel

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL