NotifyViaTelegramBot
ts
function NotifyViaTelegramBot(msg: string): boolean;IMPORTANT
This function only works if a SuperAdmin has created and configured a Telegram Bot in the SuperAdmin UI.
Sends a notification using the configured Telegram Bot to every Telegram GROUP the bot is a member of, provided the bot has access to group messages and notifications are enabled in each group (via the /notify on command).
msg: The plain-text message to send.
Returns true if the notification was accepted by the Telegram network, or false if an error occurred.
WARNING
A return value of true only means the message was accepted by the Telegram network. Delivery is not guaranteed and depends on factors outside Syncplify Server!'s control.
Example
ts
NotifyViaTelegramBot("User [" + Session.GetUserID() + "] just logged in.");Here's how the notification will look in Telegram:

