mirror of
https://github.com/appleboy/telegram-action.git
synced 2026-05-14 02:42:44 +00:00
chore: Send message using custom socks5 proxy url
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user