{"id":25443603,"url":"https://github.com/krau/SaveAny-Bot","last_synced_at":"2025-11-01T17:30:37.567Z","repository":{"id":258507712,"uuid":"870743771","full_name":"krau/SaveAny-Bot","owner":"krau","description":"保存 Telegram 文件到各类存储空间 📂 (支持 Alist、本地磁盘、Webdav...) ","archived":false,"fork":false,"pushed_at":"2025-02-12T03:13:56.000Z","size":29286,"stargazers_count":64,"open_issues_count":3,"forks_count":6,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-12T03:28:35.987Z","etag":null,"topics":["alist","pikpak","telegram-bot"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/krau.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-10T15:31:04.000Z","updated_at":"2025-02-12T03:13:59.000Z","dependencies_parsed_at":"2024-11-10T08:20:57.655Z","dependency_job_id":"50b68955-3c09-446e-bcaf-755c9b017ca9","html_url":"https://github.com/krau/SaveAny-Bot","commit_stats":null,"previous_names":["krau/saveany-bot"],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krau%2FSaveAny-Bot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krau%2FSaveAny-Bot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krau%2FSaveAny-Bot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/krau%2FSaveAny-Bot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/krau","download_url":"https://codeload.github.com/krau/SaveAny-Bot/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239311611,"owners_count":19618013,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["alist","pikpak","telegram-bot"],"created_at":"2025-02-17T15:01:15.539Z","updated_at":"2025-11-01T17:30:37.531Z","avatar_url":"https://github.com/krau.png","language":"Go","funding_links":[],"categories":["Go"],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n# \u003cimg src=\"docs/logo.jpg\" width=\"45\" align=\"center\"\u003e Save Any Bot\n\n把 Telegram 的文件保存到各类存储端.\n\n\u003e _就像 PikPak Bot 一样_\n\n\u003c/div\n\nDemo Video:\n\n\u003cdiv align=\"center\"\u003e\n\n[SaveAny-Bot 演示视频 ｜ The Demo of SaveAny-Bot.webm](https://github.com/user-attachments/assets/a0de2453-a4d1-4a12-81fb-9d84856dce09)\n\n\u003c/div\u003e\n\n## 部署\n\n### 从二进制文件部署\n\n在 [Release](https://github.com/krau/SaveAny-Bot/releases) 页面下载对应平台的二进制文件.\n\n在解压后目录新建 `config.toml` 文件, 参考 [config.toml.example](https://github.com/krau/SaveAny-Bot/blob/main/config.example.toml) 编辑配置文件.\n\n运行:\n\n```bash\nchmod +x saveany-bot\n./saveany-bot\n```\n\n#### 添加为 systemd 服务\n\n创建文件 `/etc/systemd/system/saveany-bot.service` 并写入以下内容:\n\n```\n[Unit]\nDescription=SaveAnyBot\nAfter=systemd-user-sessions.service\n\n[Service]\nType=simple\nWorkingDirectory=/yourpath/\nExecStart=/yourpath/saveany-bot\nRestart=on-failure\n\n[Install]\nWantedBy=multi-user.target\n```\n\n设为开机启动并启动服务:\n\n```bash\nsystemctl enable --now saveany-bot\n```\n\n### 使用 Docker 部署\n\n#### Docker Compose\n\n下载 [docker-compose.yml](https://github.com/krau/SaveAny-Bot/blob/main/docker-compose.yml) 文件, 并修改其中的配置.\n\n运行:\n\n```bash\ndocker compose up -d\n```\n\n#### Docker\n\n```shell\ndocker run -d --name saveany-bot \\\n    -v /path/to/config.toml:/app/config.toml \\\n    -v /path/to/downloads:/app/downloads \\\n    ghcr.io/krau/saveany-bot:latest\n```\n\n## 更新\n\n使用 `upgrade` 或 `up` 升级到最新版\n\n```bash\n./saveany-bot upgrade\n```\n\n如果是 Docker 部署, 使用以下命令更新:\n\n```bash\ndocker pull ghcr.io/krau/saveany-bot:latest\ndocker restart saveany-bot\n```\n\n## 使用\n\n向 Bot 发送(转发)文件, 按照提示操作.\n\n---\n\n## Thanks\n\n- [gotd](https://github.com/gotd/td)\n- [TG-FileStreamBot](https://github.com/EverythingSuckz/TG-FileStreamBot)\n- [gotgproto](https://github.com/celestix/gotgproto)\n- All the dependencies\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrau%2FSaveAny-Bot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkrau%2FSaveAny-Bot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkrau%2FSaveAny-Bot/lists"}