Tutorial: chat-plugin

chat-plugin

Chat features

A plugin ...

Key features:

  • Sends a message to user.
  • Sends a notification that message are read by user.

Subscribe to chat events

wtapi = new WTAPI("...");
wtapi.chat.on("message_received", callback);
wtapi.chat.on("message_delivered", callback);
wtapi.connect();