OpenClaw channel plugin for Txin Bot integration via WebSocket. Current version 1.1.17. Provides bidirectional communication, automatic reconnection with exponential backoff, heartbeat mechanism, message queuing, and support for text, image, and file messages. Primarily a plugin for the OpenClaw framework; not a standalone library. Requires an API key from Txin Bot service.
npm install txinbotNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes the TxinBot plugin with an API key and WebSocket URL, then registers it with an OpenClaw instance.
Upgrade OpenClaw to v1.5.0+ with `npm update openclaw`.
Set `TXINBOT_WS_URL` environment variable or pass `wsUrl` in constructor options.
Add `--token 'YOUR_API_KEY'` when running `openclaw channels add` or set `TXINBOT_API_KEY` environment variable.
No action needed; be aware of potential changes when upgrading.
Run `openclaw plugins install txinbot@latest` in your project directory.
Start the Txin Bot server on ws://localhost:9090/ws or set TXINBOT_WS_URL to the correct URL.
Verify the API key and set it via the --token flag or environment variable TXINBOT_API_KEY.