diff options
author | Christian Hesse <mail@eworm.de> | 2023-05-22 09:52:34 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2023-05-22 09:52:34 +0200 |
commit | e9b7c7f7ed540e88006c626c205d9c60c50c1677 (patch) | |
tree | f3b7f0b94b9f7c0ad8c6caa9fbc858502df05a32 | |
parent | c0aeee3d3eb4abc006a3cfd4f57da7ab9f290e03 (diff) |
doc/mod/notification-telegram: describe how to declare functions...
... to use them in own scripts.
-rw-r--r-- | doc/mod/notification-telegram.md | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/doc/mod/notification-telegram.md b/doc/mod/notification-telegram.md index 5e6c1a0..7141fe9 100644 --- a/doc/mod/notification-telegram.md +++ b/doc/mod/notification-telegram.md @@ -53,8 +53,8 @@ Usage and invocation There's nothing special to do. Every script or function sending a notification will now send it to your Telegram account. -But of course you can send notifications directly or use a function in your -own scripts. Give it a try: +But of course you can use the function to send notifications directly. Give +it a try: $SendTelegram "Subject..." "Body..." @@ -63,6 +63,12 @@ methods: $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 -------- |