mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-07-26 05:44:39 +02:00
mod/notification-telegram: support sending to specific chatid
This commit is contained in:
parent
bf1af61d2d
commit
2cb74f0269
1 changed files with 2 additions and 1 deletions
|
@ -98,7 +98,8 @@
|
||||||
:return $Return;
|
: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 ];
|
:local TokenId [ $EitherOr ($TelegramTokenIdOverride->($Notification->"origin")) $TelegramTokenId ];
|
||||||
|
|
||||||
:if ([ :len $TokenId ] = 0 || [ :len $ChatId ] = 0) do={
|
:if ([ :len $TokenId ] = 0 || [ :len $ChatId ] = 0) do={
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue