Skip to content

Commit

Permalink
change the separator of multiple TELEGRAPH_TOKEN from ; to ,
Browse files Browse the repository at this point in the history
Signed-off-by: Rongrong <15956627+Rongronggg9@users.noreply.github.com>
  • Loading branch information
Rongronggg9 committed Sep 17, 2021
1 parent 151a610 commit 36dd39a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose.yml.sample
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ services:

# ↓------ 要启用长文自动转 Telegraph,取消注释(删除 # 号)并替换为你自己申请到的 access_token ------↓ #
# 在这里申请: https://api.telegra.ph/createAccount?short_name=RSStT&author_name=Generated%20by%20RSStT&author_url=https%3A%2F%2Fgithub.com%2FRongronggg9%2FRSS-to-Telegram-Bot
# 可以填写多个,以半角分号( ; )分割,每次都会随机选用(刷新上述页面就可以取得新的 token)
# 可以填写多个,以半角逗号( , )分割,每次都会随机选用(刷新上述页面就可以取得新的 token)
#- TELEGRAPH_TOKEN=1a23b456c78de90f1a23b456c78de90f1a23b456c78de90f1a23b456c78d
# ↑------ 要启用长文自动转 Telegraph,取消注释(删除 # 号)并替换为你自己申请到的 access_token ------↑ #

Expand Down
2 changes: 1 addition & 1 deletion tgraph.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def __getattribute__(self, item):

api = None
if env.TELEGRAPH_TOKEN:
api = API(env.TELEGRAPH_TOKEN.split(';'))
api = API(env.TELEGRAPH_TOKEN.split(','))
if not api.valid:
logger.error('Cannot set up Telegraph, fallback to non-Telegraph mode.')
api = None
Expand Down

0 comments on commit 36dd39a

Please sign in to comment.