Remove Telegram silent notifications
This commit is contained in:
parent
4d04257240
commit
080b948051
|
@ -107,7 +107,7 @@ case "$update" in
|
||||||
if [[ $telegramtoken != "" ]] && [[ $telegramchatid != "" ]]; then
|
if [[ $telegramtoken != "" ]] && [[ $telegramchatid != "" ]]; then
|
||||||
curl -H 'Content-Type: application/json' -X POST \
|
curl -H 'Content-Type: application/json' -X POST \
|
||||||
--data-raw '{
|
--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
|
}' https://api.telegram.org/bot$telegramtoken/sendMessage
|
||||||
fi
|
fi
|
||||||
exit 1;;
|
exit 1;;
|
||||||
|
@ -129,7 +129,7 @@ case "$update" in
|
||||||
if [[ $telegramtoken != "" ]] && [[ $telegramchatid != "" ]]; then
|
if [[ $telegramtoken != "" ]] && [[ $telegramchatid != "" ]]; then
|
||||||
curl -H 'Content-Type: application/json' -X POST \
|
curl -H 'Content-Type: application/json' -X POST \
|
||||||
--data-raw '{
|
--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
|
}' https://api.telegram.org/bot$telegramtoken/sendMessage
|
||||||
fi
|
fi
|
||||||
exit 0;;
|
exit 0;;
|
||||||
|
|
Loading…
Reference in New Issue