3 Commits

Author SHA1 Message Date
Bo-Yi Wu 9e5e0be372 chore: support disable web page preview (#24) 2020-10-03 08:42:51 +08:00
Bo-Yi Wu 0e7bbc5ef7 Merge pull request #17 from crazyuploader/patch-1
Update README.md
2020-07-19 01:17:37 +08:00
Jugal Kishore 3295af7b78 Update README.md
Fix typo
2020-07-18 17:27:06 +05:30
3 changed files with 27 additions and 5 deletions
+22 -4
View File
@@ -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: |
# ⚡️ <a href="https://github.com/aszenz/repo/commit/${{ github.event.push.after }}">Commits</a> pushed to master by <em>${{ github.event.push.pusher.name }}</em> ⚡️
# ${{ github.actor }}:${{ github.event.head_commit.message }}
- name: link preview
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
format: html
message: |
⚡️ <a href="https://github.com/aszenz/repo/commit/${{ github.event.push.after }}">Commits</a> pushed to master by <em>${{ github.event.push.pusher.name }}</em> ⚡️
${{ github.actor }}:${{ github.event.head_commit.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 }}
webpage_preview: false
message: |
link preview https://google.com.tw
+2 -1
View File
@@ -8,7 +8,7 @@
## Usage
Send custom message and see the custom variable as blow.
Send custom message and see the custom variable as below.
```yml
name: telegram message
@@ -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
+3
View File
@@ -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'