diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 550d044..a59e441 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -72,12 +72,30 @@ jobs:
# token: ${{ secrets.TELEGRAM_TOKEN }}
# socks5: "http://222.124.154.19:23500"
# message: Send message from socks5 proxy URL.
- - name: try multiple message
+
+ # - name: try multiple message
+ # uses: appleboy/telegram-action@master
+ # with:
+ # to: ${{ secrets.TELEGRAM_TO }}
+ # token: ${{ secrets.TELEGRAM_TOKEN }}
+ # format: html
+ # message: |
+ # ⚡️ Commits pushed to master by ${{ github.event.push.pusher.name }} ⚡️
+ # ${{ github.actor }}:${{ github.event.head_commit.message }}
+
+ - name: link preview
+ uses: appleboy/telegram-action@master
+ with:
+ to: ${{ secrets.TELEGRAM_TO }}
+ token: ${{ secrets.TELEGRAM_TOKEN }}
+ message: |
+ link preview https://google.com.tw
+
+ - name: disable link preview
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
- format: html
+ webpage_preview: false
message: |
- ⚡️ Commits pushed to master by ${{ github.event.push.pusher.name }} ⚡️
- ${{ github.actor }}:${{ github.event.head_commit.message }}
+ link preview https://google.com.tw
diff --git a/README.md b/README.md
index 108127f..fa75af0 100644
--- a/README.md
+++ b/README.md
@@ -55,6 +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`.
## Example
diff --git a/action.yml b/action.yml
index ca291d6..d25e9d9 100644
--- a/action.yml
+++ b/action.yml
@@ -32,6 +32,9 @@ inputs:
description: 'enable debug mode.'
format:
description: 'message format: markdown or html'
+ webpage_preview:
+ description: 'disables link previews for links in this message'
+ default: true
runs:
using: 'docker'
image: 'Dockerfile'