Skip to content

Commit

Permalink
docs: add new config option & limit of TG storage
Browse files Browse the repository at this point in the history
  • Loading branch information
y-young committed Nov 12, 2023
1 parent bdc2992 commit d3d3ed3
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 0 deletions.
8 changes: 8 additions & 0 deletions docs/getting-started/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions docs/getting-started/configuration.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ _在 v2 中新增。_

请求超时时间,以秒为单位。

## DOWNLOAD_CHUNK_SIZE

:material-lightbulb-on: 可选,默认为 `4096`

写入下载文件时的块大小,以字节为单位。

_在 v2.6.0 中新增。_

## HTTP_PROXY

:material-lightbulb-on: 可选,默认遵循环境变量
Expand Down
4 changes: 4 additions & 0 deletions docs/storage/telegram.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions docs/storage/telegram.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

使用 Telegram 频道(相册频道)存储下载的文件。

!!! warning "警告"

由于 Telegram 机器人 API 的文件大小限制,大于 50MB 的文件无法存储在 Telegram 中。

## 配置

### STORAGE
Expand Down

0 comments on commit d3d3ed3

Please sign in to comment.