|
@@ -17,7 +17,7 @@ EOF
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
fn_print_dots "Sending Telegram alert"
|
|
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
|
|
if [ -n "${telegramsend}" ]; then
|
|
|
fn_print_fail_nl "Sending Telegram alert: ${telegramsend}"
|
|
fn_print_fail_nl "Sending Telegram alert: ${telegramsend}"
|