2025-02-18 19:53:01 +08:00
2025-01-20 12:07:13 +08:00
2024-10-10 23:31:01 +08:00
2025-01-20 11:03:01 +08:00
2025-02-18 19:53:01 +08:00
2024-11-10 15:41:14 +08:00
2024-10-10 23:31:01 +08:00
2024-10-10 23:31:01 +08:00
2024-10-12 12:47:33 +08:00
2024-11-09 09:39:18 +08:00
2024-10-10 23:38:23 +08:00
2025-02-12 13:49:36 +08:00

Save Any Bot

把 Telegram 的文件保存到各类存储端.

就像 PikPak Bot 一样

Demo Video:

部署

从二进制文件部署

Release 页面下载对应平台的二进制文件.

在解压后目录新建 config.toml 文件, 参考 config.toml.example 编辑配置文件.

运行:

chmod +x saveany-bot
./saveany-bot

添加为 systemd 服务

创建文件 /etc/systemd/system/saveany-bot.service 并写入以下内容:

[Unit]
Description=SaveAnyBot
After=systemd-user-sessions.service

[Service]
Type=simple
WorkingDirectory=/yourpath/
ExecStart=/yourpath/saveany-bot
Restart=on-failure

[Install]
WantedBy=multi-user.target

设为开机启动并启动服务:

systemctl enable --now saveany-bot

使用 Docker 部署

Docker Compose

下载 docker-compose.yml 文件, 并修改其中的配置.

运行:

docker compose up -d

Docker

docker run -d --name saveany-bot \
    -v /path/to/config.toml:/app/config.toml \
    -v /path/to/downloads:/app/downloads \
    ghcr.io/krau/saveany-bot:latest

更新

使用 upgradeup 升级到最新版

./saveany-bot upgrade

如果是 Docker 部署, 使用以下命令更新:

docker pull ghcr.io/krau/saveany-bot:latest
docker restart saveany-bot

使用

向 Bot 发送(转发)文件, 按照提示操作.


Thanks

Description
Save Any Telegram File to Anywhere 📂 (Alist, Disk, Webdav, S3, Rclone...) . Support restrict saving content and files beyond telegram.
Readme AGPL-3.0 91 MiB
Languages
Go 98.7%
JavaScript 1%
Dockerfile 0.2%