diff --git a/script/trigger_telegram.sh b/script/trigger_telegram.sh index 6280167..31f2f76 100755 --- a/script/trigger_telegram.sh +++ b/script/trigger_telegram.sh @@ -2,7 +2,7 @@ # Check if TELEGRAM_TOKEN and TELEGRAM_CHATID are both set if [ -z "${TELEGRAM_TOKEN}" ] || [ -z "${TELEGRAM_CHATID}" ]; then - echo "TELEGRAM_TOKEN or TELEGRAM_CHATID is not set" + echo "TELEGRAM_TOKEN or TELEGRAM_CHATID environment variables not set, skipping Telegram trigger." exit 1 fi @@ -17,4 +17,4 @@ MESSAGE="Scanner: $1" ENCODED_MESSAGE=$(echo "$MESSAGE" | jq -sRr @uri) # Send the message using wget -wget -qO- --post-data="chat_id=$CHAT_ID&text=$ENCODED_MESSAGE" "https://api.telegram.org/$TOKEN/sendMessage" > /dev/null +wget -qO- --post-data="chat_id=$CHAT_ID&text=$ENCODED_MESSAGE" "https://api.telegram.org/$TOKEN/sendMessage" >/dev/null