aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-02-02 09:11:34 +0100
committerGravatar Christian Hesse <mail@eworm.de>2023-02-02 09:11:34 +0100
commit2cb74f0269c7fbd342ee801b9478e4704448f349 (patch)
tree22ce63966611379a20dd2deac5870347967c422c /mod
parentbf1af61d2de5a6b2f5188c3b06b6a4c2c670465a (diff)
mod/notification-telegram: support sending to specific chatid
Diffstat (limited to 'mod')
-rw-r--r--mod/notification-telegram3
1 files changed, 2 insertions, 1 deletions
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={