mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 10:52:51 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e5e0be372 | |||
| 0e7bbc5ef7 | |||
| 3295af7b78 |
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user