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