mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-07-03 19:51:56 +00:00
…
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 -
ChatCommandtype in command.ts - if some command is not created as a ChatClient method, you can pass any command object tosendChatCommandmethod, or if the type for some command is not available you can pass command string (same strings as supported in terminal/mobile API) tosendChatCmdStrmethod. - available chat messages -
ChatResponsetype 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.