Remove Telegram silent notifications

This commit is contained in:
Vasyl Gnatiuk 2022-10-19 21:26:08 -04:00 committed by GitHub
parent 4d04257240
commit 080b948051
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;;