mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2025-08-04 10:14:56 +02:00
global-functions: add identity tag in $SendNotification
... and send subject in telegram message.
This commit is contained in:
parent
c4f8c1ad52
commit
6e4d715937
9 changed files with 13 additions and 11 deletions
|
@ -26,7 +26,7 @@
|
|||
:if ($phone = $allowed && message~("^:cmd " . $secret . " script ")) do={
|
||||
:log debug "Ignoring SMS, which starts a script.";
|
||||
} else={
|
||||
$SendNotification ("[" . $identity . "] SMS Forwarding") \
|
||||
$SendNotification ("SMS Forwarding") \
|
||||
("A message was received by " . $identity . ":\n\n" . \
|
||||
"Phone: " . $phone . "\n" . \
|
||||
"Timestamp: " . $timestamp . "\n" . \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue