Browse Source

Revert telegram change

pull/3605/head
Daniel Gibbs 4 years ago
parent
commit
48308ec61e
No known key found for this signature in database GPG Key ID: 5D5AB867A27738EC
  1. 2
      lgsm/functions/alert_telegram.sh

2
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}"

Loading…
Cancel
Save