mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
docs: add photo and location message
This commit is contained in:
@@ -32,19 +32,6 @@ Remove `args` to send the default message.
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
send location message:
|
|
||||||
|
|
||||||
```yml
|
|
||||||
- name: send location message
|
|
||||||
uses: appleboy/telegram-action@master
|
|
||||||
with:
|
|
||||||
location: '24.9163213 121.1424972'
|
|
||||||
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
|
|
||||||
env:
|
|
||||||
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
|
||||||
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
|
||||||
```
|
|
||||||
|
|
||||||
## Input variables
|
## Input variables
|
||||||
|
|
||||||
* photo - optional. photo message
|
* photo - optional. photo message
|
||||||
@@ -60,6 +47,8 @@ send location message:
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
|
|
||||||
|
send photo message:
|
||||||
|
|
||||||
```yml
|
```yml
|
||||||
- name: send photo message
|
- name: send photo message
|
||||||
uses: appleboy/telegram-action@master
|
uses: appleboy/telegram-action@master
|
||||||
@@ -72,6 +61,19 @@ send location message:
|
|||||||
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
send location message:
|
||||||
|
|
||||||
|
```yml
|
||||||
|
- name: send location message
|
||||||
|
uses: appleboy/telegram-action@master
|
||||||
|
with:
|
||||||
|
location: '24.9163213 121.1424972'
|
||||||
|
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
|
||||||
|
env:
|
||||||
|
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
|
||||||
|
TELEGRAM_TO: ${{ secrets.TELEGRAM_TO }}
|
||||||
|
```
|
||||||
|
|
||||||
## Secrets
|
## Secrets
|
||||||
|
|
||||||
Getting started with [Telegram Bot API](https://core.telegram.org/bots/api).
|
Getting started with [Telegram Bot API](https://core.telegram.org/bots/api).
|
||||||
|
|||||||
Reference in New Issue
Block a user