From 1ecd8d50e4e7f71cc8d5e73be457a6ec30fe3c1a Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Sat, 3 Oct 2020 16:10:54 +0800 Subject: [PATCH] refactor: disable_web_page_preview --- .github/workflows/ci.yml | 6 +++--- Dockerfile | 2 +- README.md | 2 +- action.yml | 3 +-- 4 files changed, 6 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a59e441..3b51d31 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -89,13 +89,13 @@ jobs: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} message: | - link preview https://google.com.tw + show link preview https://google.com.tw - name: disable link preview uses: appleboy/telegram-action@master with: to: ${{ secrets.TELEGRAM_TO }} token: ${{ secrets.TELEGRAM_TOKEN }} - webpage_preview: false + disable_web_page_preview: true message: | - link preview https://google.com.tw + disable link preview https://google.com.tw diff --git a/Dockerfile b/Dockerfile index 9349623..7e836ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM appleboy/drone-telegram:1.3.6-linux-amd64 +FROM appleboy/drone-telegram:1.3.7-linux-amd64 ADD entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh diff --git a/README.md b/README.md index fa75af0..e67c4b6 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ Remove `args` to send the default message. * format - optional. `markdown` or `html`. See [MarkdownV2 style](https://core.telegram.org/bots/api#markdownv2-style) * message - optional. custom message * message_file - optional. overwrite the default message template with the contents of the specified file. -* webpage_preview - optional. disables link previews for links in this message. default is `true`. +* disable_web_page_preview - optional. disables link previews for links in this message. default is `false`. ## Example diff --git a/action.yml b/action.yml index d25e9d9..ac81b3f 100644 --- a/action.yml +++ b/action.yml @@ -32,9 +32,8 @@ inputs: description: 'enable debug mode.' format: description: 'message format: markdown or html' - webpage_preview: + disable_web_page_preview: description: 'disables link previews for links in this message' - default: true runs: using: 'docker' image: 'Dockerfile'