mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
doc/mod/notification-telegram: describe how to declare functions...
... to use them in own scripts.
This commit is contained in:
parent
c0aeee3d3e
commit
e9b7c7f7ed
|
@ -53,8 +53,8 @@ Usage and invocation
|
||||||
There's nothing special to do. Every script or function sending a notification
|
There's nothing special to do. Every script or function sending a notification
|
||||||
will now send it to your Telegram account.
|
will now send it to your Telegram account.
|
||||||
|
|
||||||
But of course you can send notifications directly or use a function in your
|
But of course you can use the function to send notifications directly. Give
|
||||||
own scripts. Give it a try:
|
it a try:
|
||||||
|
|
||||||
$SendTelegram "Subject..." "Body..."
|
$SendTelegram "Subject..." "Body..."
|
||||||
|
|
||||||
|
@ -63,6 +63,12 @@ methods:
|
||||||
|
|
||||||
$SendNotification "Subject..." "Body..."
|
$SendNotification "Subject..." "Body..."
|
||||||
|
|
||||||
|
To use the functions in your own scripts you have to declare them first.
|
||||||
|
Place this before you call them:
|
||||||
|
|
||||||
|
:global SendTelegram;
|
||||||
|
:global SendNotification;
|
||||||
|
|
||||||
See also
|
See also
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue