Skip to content

Commit

Permalink
Update alert_telegram.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
1F33LR41N authored May 17, 2018
1 parent 978b722 commit b9a1d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lgsm/functions/alert_telegram.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
Expand Down

0 comments on commit b9a1d8e

Please sign in to comment.