docs: add lang settings guide

This commit is contained in:
krau
2026-01-05 11:56:19 +08:00
parent 75e5fd10ea
commit e60e983229
3 changed files with 5 additions and 2 deletions

View File

@@ -39,6 +39,7 @@
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]

View File

@@ -30,6 +30,7 @@ base_path = "./downloads"
### Global Configuration
- `lang`: The language used by the Bot, default is `zh-CN` (Simplified Chinese). `en` is used for English.
- `stream`: Whether to enable Stream mode, default is `false`. When enabled, the Bot will stream files directly to storage endpoints (if supported), without downloading them locally.
{{< hint warning >}}
Stream mode is very useful for deployment environments with limited disk space, but it also has some drawbacks:
@@ -47,6 +48,7 @@ Stream mode is very useful for deployment environments with limited disk space,
- `proxy`: Global proxy configuration. After setting this, all network connections inside the program will try to use this proxy. Optional.
```toml
lang = "en"
stream = false
workers = 3
threads = 4

View File

@@ -4,7 +4,7 @@ title: "Installation and Updates"
# Installation and Updates
## Deploy from Pre-compiled Files (Recommended)
## Deploy from Pre-compiled Binary (Recommended)
Download the binary file for your platform from the [Release](https://github.com/krau/SaveAny-Bot/releases) page.
@@ -17,7 +17,7 @@ chmod +x saveany-bot
./saveany-bot
```
### Process Monitoring
### Daemon
{{< tabs "daemon" >}}
{{< tab "systemd (Regular Linux)" >}}