From d3d3ed3492fd8b604725b84fa1ee9ec76e265b90 Mon Sep 17 00:00:00 2001 From: yyoung Date: Sun, 12 Nov 2023 23:40:51 +0800 Subject: [PATCH] docs: add new config option & limit of TG storage --- docs/getting-started/configuration.md | 8 ++++++++ docs/getting-started/configuration.zh.md | 8 ++++++++ docs/storage/telegram.md | 4 ++++ docs/storage/telegram.zh.md | 4 ++++ 4 files changed, 24 insertions(+) diff --git a/docs/getting-started/configuration.md b/docs/getting-started/configuration.md index edd84573..58a87fd3 100644 --- a/docs/getting-started/configuration.md +++ b/docs/getting-started/configuration.md @@ -164,6 +164,14 @@ _Added in v2._ Request timeout in seconds. +## DOWNLOAD_CHUNK_SIZE + +:material-lightbulb-on: Optional, defaults to `4096` + +Chunk size when writing downloaded files, in bytes. + +_Added in v2.6.0._ + ## HTTP_PROXY :material-lightbulb-on: Optional, defaults to your environment diff --git a/docs/getting-started/configuration.zh.md b/docs/getting-started/configuration.zh.md index 6a89c79d..9509e7a6 100644 --- a/docs/getting-started/configuration.zh.md +++ b/docs/getting-started/configuration.zh.md @@ -164,6 +164,14 @@ _在 v2 中新增。_ 请求超时时间,以秒为单位。 +## DOWNLOAD_CHUNK_SIZE + +:material-lightbulb-on: 可选,默认为 `4096` + +写入下载文件时的块大小,以字节为单位。 + +_在 v2.6.0 中新增。_ + ## HTTP_PROXY :material-lightbulb-on: 可选,默认遵循环境变量 diff --git a/docs/storage/telegram.md b/docs/storage/telegram.md index 77cb639b..09607292 100644 --- a/docs/storage/telegram.md +++ b/docs/storage/telegram.md @@ -6,6 +6,10 @@ Use a Telegram channel (album channel) to store downloaded files. +!!! warning + + Due to the file size limit of Telegram bot API, files larger than 50MB cannot be stored in Telegram. + ## Configuration ### STORAGE diff --git a/docs/storage/telegram.zh.md b/docs/storage/telegram.zh.md index 96dca295..a9795ab1 100644 --- a/docs/storage/telegram.zh.md +++ b/docs/storage/telegram.zh.md @@ -6,6 +6,10 @@ 使用 Telegram 频道(相册频道)存储下载的文件。 +!!! warning "警告" + + 由于 Telegram 机器人 API 的文件大小限制,大于 50MB 的文件无法存储在 Telegram 中。 + ## 配置 ### STORAGE