mod/notification-telegram: $SendTelegram: use $ExitError to indicate unintentional error

This commit is contained in:
Christian Hesse 2024-12-09 11:10:43 +01:00
parent e89867be15
commit 4968b79fc1

View file

@ -182,11 +182,13 @@
}
# send notification via telegram - expects at least two string arguments
:set SendTelegram do={
:set SendTelegram do={ :do {
:global SendTelegram2;
$SendTelegram2 ({ origin=$0; subject=$1; message=$2; link=$3; silent=$4 });
}
} on-error={
:global ExitError; $ExitError false $0;
} }
# send notification via telegram - expects one array argument
:set SendTelegram2 do={