mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
feat: Added support to sending message to group topic (#70)
This commit is contained in:
committed by
GitHub
parent
847a2d3240
commit
37056891d4
@@ -66,6 +66,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. |
|
||||
| message_thread_id | optional. Unique identifier for the target message thread (topic) of the forum; for forum supergroups only. |
|
||||
| disable_web_page_preview | optional. Disables link previews for links in this message. Default is `false`. |
|
||||
| disable_notification | optional. Disables notifications for this message, supports sending a message without notification. Default is `false`. |
|
||||
|
||||
@@ -97,6 +98,18 @@ Send location message:
|
||||
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
|
||||
```
|
||||
|
||||
Send a message to a specific forum topic (thread):
|
||||
|
||||
```yml
|
||||
- name: send message to forum topic
|
||||
uses: appleboy/telegram-action@master
|
||||
with:
|
||||
to: ${{ secrets.TELEGRAM_TO }}
|
||||
token: ${{ secrets.TELEGRAM_TOKEN }}
|
||||
message_thread_id: 42
|
||||
message: Hello from GitHub Actions!
|
||||
```
|
||||
|
||||
Send message using custom proxy (support `http`, `https`, and `socks5`) like `socks5://127.0.0.1:1080` or `http://222.124.154.19:23500`
|
||||
|
||||
```yml
|
||||
|
||||
@@ -36,6 +36,8 @@ inputs:
|
||||
description: 'disables link previews for links in this message'
|
||||
disable_notification:
|
||||
description: 'disables notifications for this message, supports sending a message without notification,'
|
||||
message_thread_id:
|
||||
description: 'unique identifier for the target message thread (topic) of the forum; for forum supergroups only'
|
||||
runs:
|
||||
using: 'docker'
|
||||
image: 'Dockerfile'
|
||||
|
||||
Reference in New Issue
Block a user