SendNotification
- SendNotification(channelName, recipients, subject, text, isMarkdown, location): void
-
Sends notification to specified recipients.
Table 1. Parameters channelName
String
Name of notification channel.
recipients
String
List of recipients. Multiple recipients should be separated by ";".
subject
String
Subject. Not all notification channel may support this field, in this case empty string "" should be provided.
text
String
Message text.
isMarkdown
Boolean
Optional.
trueif the message text is in Markdown format. Defaults tofalse.location
Optional. Geographic location passed to the notification channel together with the message. Can be
null.ReturnNo return value. If the script is executed on behalf of a user without the "Send notifications" system access right, or the recipient list is empty, nothing is sent.
SendNotification("Telegram", "Alice; Bob", "", "My message text");