docs: add photo and location message

This commit is contained in:
Bo-Yi Wu
2019-09-25 22:04:09 +08:00
parent fdf386abfa
commit 2b5a500551
+15 -13
View File
@@ -32,19 +32,6 @@ Remove `args` to send the default message.
![workflow](./images/telegram-workflow.png) ![workflow](./images/telegram-workflow.png)
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).