diff --git a/notify_templates/notify_telegram.sh b/notify_templates/notify_telegram.sh index ca861a0..d47e29a 100644 --- a/notify_templates/notify_telegram.sh +++ b/notify_templates/notify_telegram.sh @@ -15,6 +15,7 @@ trigger_notification() { TelegramData="{\"chat_id\":\"$TelegramChatId\",\"text\":\"$MessageBody\",\"message_thread_id\":\"$TelegramTopicID\",\"disable_notification\": false}" curl -sS -o /dev/null --fail -X POST "$TelegramUrl/sendMessage" -H 'Content-Type: application/json' -d "$TelegramData" +} send_notification() { [ -s "$ScriptWorkDir"/urls.list ] && releasenotes || Updates=("$@")