fix: align with observed signal-cli-rest-api behaviour
Real-frame parsing test, README notes from live verification (manual mode needs a build newer than 0.101, sync before listing groups, 30-day phone rule, observed errors and long texts), compose image pinned. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
136e431917
commit
788dd0b968
3 files changed
+41
-4
No files matched your search
@@ -67,7 +67,10 @@ Errors can be checked with `errors.Is`: `ErrNotLinked`,
|
||||
`ErrRateLimited` (429), `ErrEmptyText`, `ErrNotJSONRPC` (the service is not in
|
||||
`MODE=json-rpc`/`json-rpc-native`; `Listen` stops instead of silently
|
||||
consuming messages). Other API errors are `*APIError`
|
||||
(`StatusCode`, `Message`). `Send` never retries.
|
||||
(`StatusCode`, `Message`). `Send` never retries. Observed: an unknown
|
||||
group gives `400 Invalid identifier group.…`, an invalid number
|
||||
`400 Failed to send message`. Long texts work: a 3,000-character message
|
||||
arrives whole, shown truncated with a "Read more" link in the Signal app.
|
||||
|
||||
See [`examples/`](examples/) for a complete app and a docker-compose file.
|
||||
|
||||
@@ -84,7 +87,10 @@ See [`examples/`](examples/) for a complete app and a docker-compose file.
|
||||
you can also open
|
||||
`http://localhost:8080/v1/qrcodelink?device_name=signalbot` in a browser
|
||||
and scan the PNG.
|
||||
4. **Find the group id**: `signalbot groups` (it warns if the bot is not an
|
||||
4. **Sync once, then find the group id.** With `JSON_RPC_RECEIVE_MODE=manual`,
|
||||
signal-cli fetches nothing (not even the group list) until something
|
||||
listens: run `signalbot listen` for a few seconds first. Then
|
||||
`signalbot groups` (it warns if the bot is not an
|
||||
admin or the group is not admins-only). Test with
|
||||
`signalbot send -to group.… "hello"` and `signalbot listen`.
|
||||
5. **Unpublish the port** and configure your app with the service URL and
|
||||
@@ -98,7 +104,15 @@ See [`examples/`](examples/) for a complete app and a docker-compose file.
|
||||
- **Use `JSON_RPC_RECEIVE_MODE=manual`.** With the default (`on-start`),
|
||||
messages that arrive while your app is down are silently lost. With
|
||||
`manual`, they stay queued by Signal and are delivered when `Listen`
|
||||
reconnects.
|
||||
reconnects (verified). This setting is newer than the 0.101 release
|
||||
(2026-09-25): use a later build. signalbot was verified with
|
||||
`bbernhard/signal-cli-rest-api:1794354199-ci` (master build of
|
||||
2026-11-10); switch to the next stable tag when it is out.
|
||||
- **Open Signal on the bot's phone at least once every 30 days**, or
|
||||
Signal unlinks its linked devices, including the bot
|
||||
([Signal support](https://support.signal.org/hc/en-us/articles/360007320551)).
|
||||
A linked device is also unlinked after 45 days of inactivity, which a
|
||||
permanently running `Listen` avoids.
|
||||
- **Never expose the service publicly**: signal-cli-rest-api has no
|
||||
authentication. Keep it on the compose network.
|
||||
- **Keep the volume.** It holds the account keys; losing it means linking
|
||||
|
||||
Reference in new issue
Block a user