From 2cb74f0269c7fbd342ee801b9478e4704448f349 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Thu, 2 Feb 2023 09:11:34 +0100 Subject: mod/notification-telegram: support sending to specific chatid --- mod/notification-telegram | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mod') diff --git a/mod/notification-telegram b/mod/notification-telegram index 03ccc3b..69c4801 100644 --- a/mod/notification-telegram +++ b/mod/notification-telegram @@ -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={ -- cgit v1.2.3-54-g00ecf