mod/notification-telegram: support sending to specific chatid

This commit is contained in:
Christian Hesse 2023-02-02 09:11:34 +01:00
parent bf1af61d2d
commit 2cb74f0269

View file

@ -98,7 +98,8 @@
:return $Return;
}
:local ChatId [ $EitherOr ($TelegramChatIdOverride->($Notification->"origin")) $TelegramChatId ];
:local ChatId [ $EitherOr ($Notification->"chatid") \
[ $EitherOr ($TelegramChatIdOverride->($Notification->"origin")) $TelegramChatId ] ];
:local TokenId [ $EitherOr ($TelegramTokenIdOverride->($Notification->"origin")) $TelegramTokenId ];
:if ([ :len $TokenId ] = 0 || [ :len $ChatId ] = 0) do={