96 lines
3.5 KiB
Markdown
96 lines
3.5 KiB
Markdown
<div align="center">
|
|
|
|
# <img src="docs/static/logo.png" width="45" align="center"> Save Any Bot
|
|
|
|
**English** | [简体中文](./README_zh.md)
|
|
|
|
> **Save Any Telegram File to Anywhere 📂. Support restrict saving content and beyond telegram.**
|
|
|
|
[](https://github.com/krau/saveany-bot/releases)
|
|
[](https://github.com/krau/saveany-bot/releases)
|
|
[](https://github.com/krau/saveany-bot/actions/workflows/build-release.yml)
|
|
[](https://github.com/krau/saveany-bot/stargazers)
|
|
[](https://github.com/krau/saveany-bot/releases)
|
|
[](https://github.com/krau/saveany-bot/issues)
|
|
[](https://github.com/krau/saveany-bot/pulls)
|
|
[](./LICENSE)
|
|
|
|
</div>
|
|
|
|
## 🎯 Features
|
|
|
|
- Support documents / videos / photos / stickers… and even [Telegraph](https://telegra.ph/)
|
|
- Bypass "restrict saving content" media
|
|
- Batch download
|
|
- Streaming transfer
|
|
- Multi-user support
|
|
- Auto organize files based on storage rules
|
|
- Watch specified chats and auto-save messages, with filters
|
|
- Transfer files between different storage backends
|
|
- Integrate with yt-dlp to download and save media from 1000+ websites
|
|
- Aria2 integration to download files from URLs/magnets and save to storages
|
|
- Write JS parser plugins to save files from almost any website
|
|
- Storage backends:
|
|
- Alist
|
|
- S3
|
|
- WebDAV
|
|
- Local filesystem
|
|
- Telegram (re-upload to specified chats)
|
|
|
|
## 📦 Quick Start
|
|
|
|
Create a `config.toml` file with the following content:
|
|
|
|
```toml
|
|
lang = "en" # Language setting, "en" for English
|
|
[telegram]
|
|
token = "" # Your bot token, obtained from @BotFather
|
|
[telegram.proxy]
|
|
# Enable proxy for Telegram
|
|
enable = false
|
|
url = "socks5://127.0.0.1:7890"
|
|
|
|
[[storages]]
|
|
name = "Local Disk"
|
|
type = "local"
|
|
enable = true
|
|
base_path = "./downloads"
|
|
|
|
[[users]]
|
|
id = 114514 # Your Telegram account id
|
|
storages = []
|
|
blacklist = true
|
|
```
|
|
|
|
Run Save Any Bot with Docker:
|
|
|
|
```bash
|
|
docker run -d --name saveany-bot \
|
|
-v ./config.toml:/app/config.toml \
|
|
-v ./downloads:/app/downloads \
|
|
ghcr.io/krau/saveany-bot:latest
|
|
```
|
|
|
|
Please [**read the docs**](https://sabot.unv.app/en/) for more configuration options and usage.
|
|
|
|
## Sponsors
|
|
|
|
This project is supported by [YxVM](https://yxvm.com/) and [NodeSupport](https://github.com/NodeSeekDev/NodeSupport).
|
|
|
|
If this project is helpful to you, consider sponsoring me via:
|
|
|
|
- [Afdian](https://afdian.com/a/unvapp)
|
|
|
|
## Thanks To
|
|
|
|
- [gotd](https://github.com/gotd/td)
|
|
- [TG-FileStreamBot](https://github.com/EverythingSuckz/TG-FileStreamBot)
|
|
- [gotgproto](https://github.com/celestix/gotgproto)
|
|
- [tdl](https://github.com/iyear/tdl)
|
|
- All the dependencies, contributors, sponsors and users.
|
|
|
|
## Contact
|
|
|
|
- [](https://t.me/ProjectSaveAny)
|
|
- [](https://github.com/krau/saveany-bot/discussions)
|
|
- [](https://t.me/acherkrau) |