Skip to content

Commit

Permalink
docs: localize README to Traditional Chinese
Browse files Browse the repository at this point in the history
- Fix a typo in the README.zh-tw.md file
- Translate English text to Traditional Chinese in the README.zh-tw.md file

Signed-off-by: appleboy <[email protected]>
appleboy committed Nov 20, 2024

Verified

This commit was signed with the committer’s verified signature.
appleboy Bo-Yi Wu
1 parent 95f0355 commit 1b2bf60
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions README.zh-tw.md
Original file line number Diff line number Diff line change
@@ -60,7 +60,7 @@
venue: '35.661777 139.704051 竹北體育館 新竹縣竹北市'
```
使用自定義���理發送消息(支持 `http`、`https` 和 `socks5`),如 `socks5://127.0.0.1:1080` 或 `http://222.124.154.19:23500`
使用自定義代理發送消息(支持 `http`、`https` 和 `socks5`),如 `socks5://127.0.0.1:1080` 或 `http://222.124.154.19:23500`

```yml
- name: send message using socks5 proxy URL
@@ -74,18 +74,18 @@

## Secrets

Getting started with [Telegram Bot API](https://core.telegram.org/bots/api).
開始使用 [Telegram Bot API](https://core.telegram.org/bots/api)

* `token`: Telegram authorization token.
* `to`: Unique identifier for this chat.
* `token`: Telegram 授權令牌。
* `to`: 此聊天的唯一標識符。

How to get unique identifier from telegram api:
如何從 telegram api 獲取唯一標識符:

```bash
curl https://api.telegram.org/bot<token>/getUpdates
```

See the result: (get chat id like `65382999`)
查看結果:(獲取聊天 ID,如 `65382999`

```json
{
@@ -118,16 +118,16 @@ See the result: (get chat id like `65382999`)
}
```

## Template variable

| Github Variable | Telegram Template Variable |
| ----------------- | -------------------------- |
| GITHUB_REPOSITORY | repo |
| GITHUB_ACTOR | repo.namespace |
| GITHUB_SHA | commit.sha |
| GITHUB_REF | commit.ref |
| GITHUB_WORKFLOW | github.workflow |
| GITHUB_ACTION | github.action |
| GITHUB_EVENT_NAME | github.event.name |
| GITHUB_EVENT_PATH | github.event.path |
| GITHUB_WORKSPACE | github.workspace |
## 模板變數

| Github 變數 | Telegram 模板變數 |
| ----------------- | ----------------- |
| GITHUB_REPOSITORY | repo |
| GITHUB_ACTOR | repo.namespace |
| GITHUB_SHA | commit.sha |
| GITHUB_REF | commit.ref |
| GITHUB_WORKFLOW | github.workflow |
| GITHUB_ACTION | github.action |
| GITHUB_EVENT_NAME | github.event.name |
| GITHUB_EVENT_PATH | github.event.path |
| GITHUB_WORKSPACE | github.workspace |

0 comments on commit 1b2bf60

Please sign in to comment.