File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed
Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ OPTIONS:
6363 --min-interval <seconds> Minimum fetch interval [default: 300]
6464
6565ARGS:
66- <token> Telegram bot token
66+ <token> Telegram bot token [env: RSSBOT_TOKEN]
6767
6868NOTE: You can get <user id> using bots like @userinfobot @getidsbot
6969```
@@ -72,6 +72,7 @@ Please read the [official docs](https://core.telegram.org/bots#3-how-do-i-create
7272
7373## Environment variables
7474
75+ - ` RSSBOT_TOKEN ` : Telegram bot token
7576- ` HTTP_PROXY ` : Proxy for HTTP
7677- ` HTTPS_PROXY ` : Proxy for HTTPS
7778- ` RSSBOT_DONT_PROXY_FEEDS ` : Set to ` 1 ` to limit the proxy to Telegram requests
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ OPTIONS:
6161 --min-interval <seconds> Minimum fetch interval [default: 300]
6262
6363ARGS:
64- <token> Telegram bot token
64+ <token> Telegram bot token [env: RSSBOT_TOKEN]
6565
6666NOTE: You can get <user id> using bots like @userinfobot @getidsbot
6767```
@@ -70,6 +70,7 @@ NOTE: You can get <user id> using bots like @userinfobot @getidsbot
7070
7171## 环境变量
7272
73+ - ` RSSBOT_TOKEN ` : Telegram bot token
7374- ` HTTP_PROXY ` : 用于 HTTP 的代理
7475- ` HTTPS_PROXY ` : 用于 HTTPS 的代理
7576- ` RSSBOT_DONT_PROXY_FEEDS ` : 设为 ` 1 ` 使所有订阅的 RSS 不通过代理(仅代理 Telegram)
Original file line number Diff line number Diff line change @@ -39,6 +39,10 @@ static BOT_ID: OnceLock<tbot::types::user::Id> = OnceLock::new();
3939) ]
4040pub struct Opt {
4141 /// Telegram bot token
42+ #[ structopt(
43+ env = "RSSBOT_TOKEN" ,
44+ hide_env_values = true
45+ ) ]
4246 token : String ,
4347 /// Path to database
4448 #[ structopt(
You can’t perform that action at this time.
0 commit comments