MSL: mNodeCommand, run NodeJS internal command
Run the internal service command by built-in WEB server NodeJS. A service function used by MyChat internal mechanisms.
Syntax
procedure mNodeCommand(const sCmd, sData: string);
Parameters and return values
| Parameter | Type | Value | 
| sCmd | string | command; | 
| sData | string | command parameters. | 
Examle
The procedure used in a script for integration with Telegram, the event OnRequestByREST, script "Telegram".
Ths script detects that a user sent not a text but file or image to Telegram bot, and then transmits request data to NodeJS WEB server.
mNodeCommand('GetTelegramAttach', sBody);
NodeJS downloads a file or image, then sends a private message of type MSG_TYPE_FILE или MSG_TYPE_IMAGE for MyChat user  support service operator.