MSL: mShutdownServer, turn off MyChat Server and shut down its work
Run an internal service command on the built-in WEB server NodeJS. The service function is used by the internal mechanisms of MyChat.
Syntax
procedure mNodeCommand(const sCmd, sData: string);
Parameters and return values
| 
    Parameter  | 
  
    Type  | 
  
    Value  | 
 
| 
    sCmd  | 
  
    string  | 
  
    command;  | 
 
| 
    sData  | 
  
    string  | 
  
    command properties.  | 
 
Exampe
The procedure is used in a script for integration with Telegram, the event OnRequestByREST, the script "Telegram".
The script determines that a user sends a file or image and not a text to the Telegram bot, and then give request data into WEB server NodeJS:
mNodeCommand('GetTelegramAttach', sBody);
NodeJS download a file or image and then sends a private message with the type MSG_TYPE_FILE or MSG_TYPE_IMAGE for MyChat user  an operator of support service.