SaveAny-Bot.The.Demo.of.SaveAny-Bot.webm
在 Release 页面下载对应平台的二进制文件.
在解压后目录新建 config.toml 文件, 参考 config.toml.example 编辑配置文件.
运行:
chmod +x saveany-bot
./saveany-bot创建文件 /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-compose.yml 文件, 并修改其中的配置.
运行:
docker compose up -ddocker 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使用 upgrade 或 up 升级到最新版
./saveany-bot upgrade如果是 Docker 部署, 使用以下命令更新:
docker pull ghcr.io/krau/saveany-bot:latest
docker restart saveany-bot向 Bot 发送(转发)文件, 按照提示操作.
- gotd
- TG-FileStreamBot
- gotgproto
- All the dependencies