Files
simplex-chat/packages/simplex-chat-client/typescript

SimpleX Chat JavaScript client

Quick start

npm i simplex-chat

See example of chat bot in squaring-bot.js

Documentation

Please refer to:

  • available client API - client.ts.
  • available commands - ChatCommand type in command.ts - if some command is not created as a ChatClient method, you can pass any command object to sendChatCommand method, or if the type for some command is not available you can pass command string (same strings as supported in terminal/mobile API) to sendChatCmdStr method.
  • available chat messages - ChatResponse type in response.ts.

Please note: you should NOT use local display names that are supported in terminal app, as they can change when contact profile is updated and you can have race conditions - use commands that use chat IDs.

Lisense

AGPL v3