chore: add DISABLE_WEB_PAGE_PREVIEW docs

This commit is contained in:
Bo-Yi Wu 2020-10-03 15:40:53 +08:00
parent d133c8b87c
commit 9cab2d0e2b
2 changed files with 13 additions and 1 deletions

12
DOCS.md
View File

@ -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

View File

@ -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",