diff --git a/README.md b/README.md index 10dd4bb..4647dc7 100644 --- a/README.md +++ b/README.md @@ -43,7 +43,7 @@ lang = "en" # Language setting, "en" for English [telegram] token = "" # Your bot token, obtained from @BotFather [telegram.proxy] -# Enable proxy for Telegram, currently only SOCKS5 is supported +# Enable proxy for Telegram enable = false url = "socks5://127.0.0.1:7890" diff --git a/README_zh.md b/README_zh.md index f067f27..f7fd59f 100644 --- a/README_zh.md +++ b/README_zh.md @@ -40,7 +40,7 @@ [telegram] token = "" # 你的 Bot Token, 在 @BotFather 获取 [telegram.proxy] -# 启用代理连接 telegram, 当前只支持 socks5 +# 启用代理连接 telegram enable = false url = "socks5://127.0.0.1:7890" diff --git a/config.example.toml b/config.example.toml index 60c4b79..a94325e 100644 --- a/config.example.toml +++ b/config.example.toml @@ -14,7 +14,7 @@ token = "" # app_id = 1025907 # app_hash = "452b0359b988148995f22ff0f4229750" [telegram.proxy] -# 启用代理连接 telegram, 只支持 socks5 +# 启用代理连接 telegram enable = false url = "socks5://127.0.0.1:7890" diff --git a/docs/content/en/deployment/configuration/_index.md b/docs/content/en/deployment/configuration/_index.md index c5924a6..28ffc11 100644 --- a/docs/content/en/deployment/configuration/_index.md +++ b/docs/content/en/deployment/configuration/_index.md @@ -64,7 +64,7 @@ proxy = "socks5://127.0.0.1:7890" - `rpc_retry`: Number of retries for RPC requests, default is 5. - `proxy`: Proxy configuration, optional. - `enable`: Whether to enable the proxy. - - `url`: Proxy address, only supports `socks5://` + - `url`: Proxy address - `userbot`: Userbot configuration, optional. - `enable`: Enable userbot integration. Requires logging in with a user account; you should use your own API ID & Hash when enabling this. - `session`: Path to the userbot session file, default is `data/usersession.db`. diff --git a/docs/content/zh/deployment/configuration/_index.md b/docs/content/zh/deployment/configuration/_index.md index d6058ca..13814ed 100644 --- a/docs/content/zh/deployment/configuration/_index.md +++ b/docs/content/zh/deployment/configuration/_index.md @@ -62,7 +62,7 @@ proxy = "socks5://127.0.0.1:7890" - `rpc_retry`: RPC 请求重试次数, 默认为 5. - `proxy`: 代理配置, 可选. - `enable`: 是否启用代理. - - `url`: 代理地址, 只支持 `socks5://` + - `url`: 代理地址 - `userbot`: userbot 配置, 可选. - `enable`: 启用 userbot 集成, 需要登录用户账号, 此时请务必使用自己的 api id & hash. - `session`: userbot 会话文件路径, 默认为 `data/usersession.db`.