Procházet zdrojové kódy

Update alert_telegram.sh

Kirill Shamilin před 8 roky
rodič
revize
b9a1d8e43a
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      lgsm/functions/alert_telegram.sh

+ 1 - 1
lgsm/functions/alert_telegram.sh

@@ -19,7 +19,7 @@ EOF
 
 fn_print_dots "Sending Telegram alert"
 sleep 0.5
-telegramsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d """${json}""" "https://api.telegram.org/bot${telegramtoken}/sendMessage" | grep "error_code")
+telegramsend=$(${curlpath} -sSL -H "Content-Type: application/json" -X POST -d """${json}""" "https://api.telegram.org/bot${telegramtoken}/sendMessage" ${curlcustomstring} | grep "error_code")
 
 if [ -n "${telegramsend}" ]; then
 	fn_print_fail_nl "Sending Telegram alert: ${telegramsend}"