Skip to content

Commit e9b7c7f

Browse files
committed
doc/mod/notification-telegram: describe how to declare functions...
... to use them in own scripts.
1 parent c0aeee3 commit e9b7c7f

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

doc/mod/notification-telegram.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ Usage and invocation
5353
There's nothing special to do. Every script or function sending a notification
5454
will now send it to your Telegram account.
5555

56-
But of course you can send notifications directly or use a function in your
57-
own scripts. Give it a try:
56+
But of course you can use the function to send notifications directly. Give
57+
it a try:
5858

5959
$SendTelegram "Subject..." "Body..."
6060

@@ -63,6 +63,12 @@ methods:
6363

6464
$SendNotification "Subject..." "Body..."
6565

66+
To use the functions in your own scripts you have to declare them first.
67+
Place this before you call them:
68+
69+
:global SendTelegram;
70+
:global SendNotification;
71+
6672
See also
6773
--------
6874

0 commit comments

Comments
 (0)