You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/content/en/deployment/configuration/storages.md
+56Lines changed: 56 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -80,4 +80,60 @@ chat_id = "123456789" # Telegram chat ID, the bot will send files to this chat
80
80
force_file = false# Force sending as file, default is false
81
81
skip_large = false# Skip large files, default is false. If enabled, files exceeding Telegram's limit will not be uploaded.
82
82
spilt_size_mb = 2000# Split size in MB, default is 2000 MB (2 GB). Files larger than this will be split into multiple parts (zip format). Ignored when skip_large is true.
83
+
```
84
+
85
+
## Rclone
86
+
87
+
`type=rclone`
88
+
89
+
Supports multiple cloud storage services through the [rclone](https://rclone.org/) command-line tool. You need to install rclone and configure remote storage first.
90
+
91
+
```toml
92
+
# Remote name configured in rclone, can be any remote defined in rclone.conf
93
+
remote = "mydrive"
94
+
# Base path in the remote storage, all files will be stored under this path
95
+
base_path = "/telegram"
96
+
# Path to rclone config file, optional, leave empty to use default path (~/.config/rclone/rclone.conf)
97
+
config_path = ""
98
+
# Additional flags to pass to rclone commands, optional
99
+
flags = ["--transfers", "4", "--checkers", "8"]
100
+
```
101
+
102
+
### Configuring rclone Remote
103
+
104
+
First, you need to configure an rclone remote. Run `rclone config` for interactive configuration, or directly edit the `rclone.conf` file.
105
+
106
+
rclone supports many cloud storage services, including but not limited to:
107
+
- Google Drive
108
+
- Dropbox
109
+
- OneDrive
110
+
- Amazon S3 and compatible services
111
+
- SFTP
112
+
- FTP
113
+
- For more services, please refer to the [rclone official documentation](https://rclone.org/overview/)
114
+
115
+
### Usage Examples
116
+
117
+
After configuring Google Drive, you can configure the storage like this:
0 commit comments