新增推送到Telegram

This commit is contained in:
Weey
2019-01-14 22:34:32 +08:00
parent 8a0309dd7c
commit 2b5e0cf8be
7 changed files with 50 additions and 1 deletions

View File

@@ -46,6 +46,12 @@ NOTIFICATION_VOICE_CODE_PHONE = 'your phone' # 接受通知的手机号
DINGTALK_ENABLED = 0
DINGTALK_WEBHOOK = 'https://oapi.dingtalk.com/robot/send?access_token=your token'
# Telegram消息推送
# 打开链接关注Bothttps://t.me/notificationme_bot
# 将Bot回复给你的专属链接复制到下方如果没有回复则发送给Bot这条信息: /start
TELEGRAM_ENABLED = 0
TELEGRAM_BOT_API_URL = 'https://tgbot.lbyczf.com/sendMessage/:your_token'
# 输出日志到文件 (Docker 中不建议修改此组配置项)
OUT_PUT_LOG_TO_FILE_ENABLED = 1
OUT_PUT_LOG_TO_FILE_PATH = '/config/12306.log' # 日志目录