From 080b948051d730728f7a00b12327c60538ff3646 Mon Sep 17 00:00:00 2001 From: Vasyl Gnatiuk Date: Wed, 19 Oct 2022 21:26:08 -0400 Subject: [PATCH] Remove Telegram silent notifications --- cloudflare-template.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cloudflare-template.sh b/cloudflare-template.sh index 2f52989..45be821 100644 --- a/cloudflare-template.sh +++ b/cloudflare-template.sh @@ -107,7 +107,7 @@ case "$update" in if [[ $telegramtoken != "" ]] && [[ $telegramchatid != "" ]]; then curl -H 'Content-Type: application/json' -X POST \ --data-raw '{ - "chat_id": "'$telegramchatid'", "text": "'"$sitename"' DDNS Update Failed: '$record_name': '$record_identifier' ('$ip').", "disable_notification": true + "chat_id": "'$telegramchatid'", "text": "'"$sitename"' DDNS Update Failed: '$record_name': '$record_identifier' ('$ip')." }' https://api.telegram.org/bot$telegramtoken/sendMessage fi exit 1;; @@ -129,7 +129,7 @@ case "$update" in if [[ $telegramtoken != "" ]] && [[ $telegramchatid != "" ]]; then curl -H 'Content-Type: application/json' -X POST \ --data-raw '{ - "chat_id": "'$telegramchatid'", "text": "'"$sitename"' Updated: '$record_name''"'"'s'""' new IP Address is '$ip'", "disable_notification": true + "chat_id": "'$telegramchatid'", "text": "'"$sitename"' Updated: '$record_name''"'"'s'""' new IP Address is '$ip'" }' https://api.telegram.org/bot$telegramtoken/sendMessage fi exit 0;;