diff --git a/telegram_notification.sh b/telegram_notification.sh index b7b100a..9130181 100755 --- a/telegram_notification.sh +++ b/telegram_notification.sh @@ -42,7 +42,7 @@ fi TG_MESSAGE=${MESSAGE//$'\n'/\%0A} # Send telegram to chat -resp=$(curl -s -f -X POST ${BOT_API_URL}/sendMessage -d chat_id=$CHAT_ID -d text="⚠️ *$(hostname | tr . ' ')* ⚠️%0A\`\`\`%0A${TG_MESSAGE}%0A\`\`\`" -d parse_mode=markdown) +resp=$(curl -s -f -X POST ${BOT_API_URL}/sendMessage -d chat_id=$CHAT_ID -d text="⚠️ *$(hostname -s | tr . ' ')* ⚠️%0A\`\`\`%0A${TG_MESSAGE}%0A\`\`\`" -d parse_mode=markdown) # Check if request succeeded if [[ $? -ne 0 ]]; then