global(fs): add ability to customise curl args in alert
This commit is contained in:
parent
d35c33b511
commit
2f548cab7d
1 changed files with 2 additions and 0 deletions
|
@ -12,6 +12,7 @@
|
|||
${pkgs.curl}/bin/curl -sG \
|
||||
--data-urlencode "chat_id=$CHATID" \
|
||||
--data-urlencode "text=$ALERT" \
|
||||
$CURL_EXTRA_ARGS \
|
||||
"https://api.telegram.org/bot$APIKEY/sendMessage"
|
||||
'';
|
||||
image = pkgs.writeShellScript "telegram-image" ''
|
||||
|
@ -22,6 +23,7 @@
|
|||
-F "chat_id=$CHATID" \
|
||||
-F "caption=$ALERT" \
|
||||
-F "photo=@-" \
|
||||
$CURL_EXTRA_ARGS \
|
||||
"https://api.telegram.org/bot$APIKEY/sendPhoto"
|
||||
'';
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue