From 9cab2d0e2bdef76c5c950b3e66561ea32a4c9bdf Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 3 Oct 2020 15:40:53 +0800 Subject: [PATCH] chore: add DISABLE_WEB_PAGE_PREVIEW docs --- DOCS.md | 12 ++++++++++++ main.go | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/DOCS.md b/DOCS.md index 1f73428..67fbdcf 100644 --- a/DOCS.md +++ b/DOCS.md @@ -225,6 +225,18 @@ Example configuration with a custom socks5 URL: + socks5: socks5://67.204.21.1:64312 ``` +Disables link previews for links in this message + +```diff + - name: send telegram notification + image: appleboy/drone-telegram + settings: + token: xxxxxxxxxx + to: telegram_user_id + message: send message using custom socks5 URL ++ disable_web_page_preview: true +``` + ## Parameter Reference token diff --git a/main.go b/main.go index 58b5592..6177535 100644 --- a/main.go +++ b/main.go @@ -112,7 +112,7 @@ func main() { cli.BoolFlag{ Name: "disable.webpage.preview", Usage: "disables link previews for links in this message", - EnvVar: "PLUGIN_WEBPAGE_PREVIEW,INPUT_DISABLE_WEB_PAGE_PREVIEW", + EnvVar: "PLUGIN_DISABLE_WEB_PAGE_PREVIEW,INPUT_DISABLE_WEB_PAGE_PREVIEW", }, cli.StringFlag{ Name: "format",