mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-07-10 20:27:47 +00:00
Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 9e5e0be372 | |||
| 0e7bbc5ef7 | |||
| 3295af7b78 |
@@ -72,12 +72,30 @@ jobs:
|
|||||||
# token: ${{ secrets.TELEGRAM_TOKEN }}
|
# token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
# socks5: "http://222.124.154.19:23500"
|
# socks5: "http://222.124.154.19:23500"
|
||||||
# message: Send message from socks5 proxy URL.
|
# 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
|
uses: appleboy/telegram-action@master
|
||||||
with:
|
with:
|
||||||
to: ${{ secrets.TELEGRAM_TO }}
|
to: ${{ secrets.TELEGRAM_TO }}
|
||||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
format: html
|
|
||||||
message: |
|
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> ⚡️
|
link preview https://google.com.tw
|
||||||
${{ github.actor }}:${{ github.event.head_commit.message }}
|
|
||||||
|
- 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
|
## Usage
|
||||||
|
|
||||||
Send custom message and see the custom variable as blow.
|
Send custom message and see the custom variable as below.
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
name: telegram message
|
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)
|
* format - optional. `markdown` or `html`. See [MarkdownV2 style](https://core.telegram.org/bots/api#markdownv2-style)
|
||||||
* message - optional. custom message
|
* message - optional. custom message
|
||||||
* message_file - optional. overwrite the default message template with the contents of the specified file.
|
* 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
|
## Example
|
||||||
|
|
||||||
|
|||||||
@@ -32,6 +32,9 @@ inputs:
|
|||||||
description: 'enable debug mode.'
|
description: 'enable debug mode.'
|
||||||
format:
|
format:
|
||||||
description: 'message format: markdown or html'
|
description: 'message format: markdown or html'
|
||||||
|
webpage_preview:
|
||||||
|
description: 'disables link previews for links in this message'
|
||||||
|
default: true
|
||||||
runs:
|
runs:
|
||||||
using: 'docker'
|
using: 'docker'
|
||||||
image: 'Dockerfile'
|
image: 'Dockerfile'
|
||||||
|
|||||||
Reference in New Issue
Block a user