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
+1
View File
@@ -39,6 +39,7 @@
Create a `config.toml` file with the following content: Create a `config.toml` file with the following content:
```toml ```toml
lang = "en" # Language setting, "en" for English
[telegram] [telegram]
token = "" # Your bot token, obtained from @BotFather token = "" # Your bot token, obtained from @BotFather
[telegram.proxy] [telegram.proxy]
@@ -30,6 +30,7 @@ base_path = "./downloads"
### Global Configuration ### 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. - `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 >}} {{< hint warning >}}
Stream mode is very useful for deployment environments with limited disk space, but it also has some drawbacks: 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. - `proxy`: Global proxy configuration. After setting this, all network connections inside the program will try to use this proxy. Optional.
```toml ```toml
lang = "en"
stream = false stream = false
workers = 3 workers = 3
threads = 4 threads = 4
+2 -2
View File
@@ -4,7 +4,7 @@ title: "Installation and Updates"
# 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. 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 ./saveany-bot
``` ```
### Process Monitoring ### Daemon
{{< tabs "daemon" >}} {{< tabs "daemon" >}}
{{< tab "systemd (Regular Linux)" >}} {{< tab "systemd (Regular Linux)" >}}