There are two ways to add support of Telegram/Discord notifications
Add the next code to the following function:
Init function:
signaler:Init(strategy.parameters);
Prepare function:
signaler:Prepare(nameOnly);
signaler.StrategyName = "your strategy name here";
ExtAsyncOperationFinished function:
signaler:AsyncOperationFinished(id, success, message, message1, message2);
Also, copy and paste the signaler module into your strategy. You can download it on GitHub.
When you need to send an alert call the next function:
signaler:Signal("Alert message", source);
Install Notification Library using ProfitRobots installer.
Modify your script code:
require("AdvancedNotifications");
//...
AdvancedNotifications:SendAlert(advanced_alert_key, message, "", "");