Command line utility MyChat Console Messenger
MyChat Console Messenger is an utility for a command line to send messages and executing various service functions. To make it work, enable Integratio API in the server settings.
List of command line keys
/? или /help |
show a brief help for using the program; |
/server |
IP address or DNS name of your MyChat Server; |
/port |
TCP port for connection to your MyChat Server (by default 2004); |
/key |
Integration API key (by default "iddqd"). The key is set in MyChat Server settings; |
/userfrom |
message sender (UIN, nickname, or email). By default — built-in bot Elisa with UIN=0; |
/userto |
message recipient (UIN, nickname, or email); |
/msg |
message text; |
/msgfile |
message text from an external file; |
/privmsg |
sending a private message; |
/confmsg |
sending a message to a text conference; |
/stat |
get the server statistics. |
ERRORLEVEL codes; a resut of MyChat Console Messenger launch.
Examples
A private message for a user
mcconsole.exe /server="192.168.10.1" /privmsg /userfrom="A.Pahmutova" /userto="17" /msg="Привет![CRLF]Как дела?"
Send a message to a user form an external file on behalf of built-in bot Elisa
mcconsole.exe /server="mycompany.ru" /privmsg /userto="info@mail.com" /msgfile="c:\messages\file17032019.txt"
A message to a text conference on behalf of domain user; specify your Integration API and non-standard port:
mcconsole.exe /server="213.130.24.149" /port="4000" /key="LDF2o8fG@#@Zf" /confmsg /userfrom="mycorp.com/S.Ivkin" /uid="17" /msg="Hello everybody!"
A private message for domain user on behalf of built-in bot:
mcconsole.exe /server="localhost" /privmsg /userto="office/A.Skorohod" /msg="Wake up, Neo :-)"