chore: Send message using custom socks5 proxy url

This commit is contained in:
Bo-Yi Wu
2019-12-07 12:51:57 +08:00
parent deae8157b2
commit 94223af513
4 changed files with 12 additions and 1 deletions
+8
View File
@@ -59,3 +59,11 @@ jobs:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
message_file: tests/message.txt
- name: send message using socks5 proxy URL
uses: appleboy/telegram-action@master
with:
to: ${{ secrets.TELEGRAM_TO }}
token: ${{ secrets.TELEGRAM_TOKEN }}
socks5: 67.204.21.1:64312
message: Send message from socks5 proxy URL.
+1 -1
View File
@@ -1,4 +1,4 @@
FROM appleboy/drone-telegram:1.3.4-linux-amd64
FROM appleboy/drone-telegram
ADD entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
+1
View File
@@ -42,6 +42,7 @@ Remove `args` to send the default message.
## Input variables
* socks5 - optional. support socks5 proxy URL
* photo - optional. photo message
* document - optional. document message
* sticker - optional. sticker message
+2
View File
@@ -10,6 +10,8 @@ inputs:
description: 'telegram message'
message_file:
description: 'overwrite the default message template with the contents of the specified file'
socks5:
description: 'support socks5 proxy URL'
photo:
description: 'send the photo message.'
document: