diff options
author | Christian Hesse <mail@eworm.de> | 2023-02-02 09:11:34 +0100 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-02-02 09:11:34 +0100 |
commit | 2cb74f0269c7fbd342ee801b9478e4704448f349 (patch) | |
tree | 22ce63966611379a20dd2deac5870347967c422c | |
parent | bf1af61d2de5a6b2f5188c3b06b6a4c2c670465a (diff) |
mod/notification-telegram: support sending to specific chatid
-rw-r--r-- | mod/notification-telegram | 3 |
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={ |