docs: add socks5 example

This commit is contained in:
Bo-Yi Wu
2019-12-07 14:45:02 +08:00
parent d04c916137
commit 7ba2054f08
+12
View File
@@ -96,6 +96,18 @@ send custom message:
echo This event is a pull request that had an assignee removed.
```
send message using custom proxy (support `http`, `https`, and `socks5`)
```yml
- name: send message using socks5 proxy URL
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
socks5: "http://222.124.154.19:23500"
message: Send message from socks5 proxy URL.
```
## Secrets
Getting started with [Telegram Bot API](https://core.telegram.org/bots/api).