Daniel Gibbs
4 years ago
No known key found for this signature in database
GPG Key ID: 5D5AB867A27738EC
1 changed files with
1 additions and
1 deletions
-
lgsm/functions/alert_telegram.sh
|
|
@ -17,7 +17,7 @@ EOF |
|
|
|
) |
|
|
|
|
|
|
|
fn_print_dots "Sending Telegram alert" |
|
|
|
telegramsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json" -X POST -d "$(echo -n "${json}" | jq -c .)" ${curlcustomstring} "https://${telegramapi}/bot${telegramtoken}/sendMessage" | grep "error_code") |
|
|
|
telegramsend=$(curl --connect-timeout 10 -sSL -H "Content-Type: application/json" -X POST -d """${json}""" ${curlcustomstring} "https://${telegramapi}/bot${telegramtoken}/sendMessage" | grep "error_code") |
|
|
|
|
|
|
|
if [ -n "${telegramsend}" ]; then |
|
|
|
fn_print_fail_nl "Sending Telegram alert: ${telegramsend}" |
|
|
|