Skip to content

Commit ff1e7e1

Browse files
authored
docs(telegram): correct errorPolicy values and defaults
1 parent 293f036 commit ff1e7e1

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/channels/telegram.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -952,20 +952,20 @@ openclaw message poll --channel telegram --target -1001234567890:topic:42 \
952952

953953
## Error reply controls
954954

955-
When the agent encounters a delivery or provider error, Telegram can either reply with the error text or suppress it. Two config keys control this behavior:
955+
When the agent encounters a delivery or provider error, the error policy controls whether error messages are sent to the Telegram chat:
956956

957-
| Key | Values | Default | Description |
958-
| ----------------------------------- | ----------------- | ------- | ----------------------------------------------------------------------------------------------- |
959-
| `channels.telegram.errorPolicy` | `reply`, `silent` | `reply` | `reply` sends a friendly error message to the chat. `silent` suppresses error replies entirely. |
960-
| `channels.telegram.errorCooldownMs` | number (ms) | `60000` | Minimum time between error replies to the same chat. Prevents error spam during outages. |
957+
| Key | Values | Default | Description |
958+
| ----------------------------------- | -------------------------- | --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
959+
| `channels.telegram.errorPolicy` | `always`, `once`, `silent` | `always` | `always` — send every error message to the chat. `once` — send each unique error message once per cooldown window (suppress repeated identical errors). `silent` — never send error messages to the chat. |
960+
| `channels.telegram.errorCooldownMs` | number (ms) | `14400000` (4h) | Cooldown window for the `once` policy. After an error is sent, the same error message is suppressed until this interval elapses. Prevents error spam during outages. |
961961

962962
Per-account, per-group, and per-topic overrides are supported (same inheritance as other Telegram config keys).
963963

964964
```json5
965965
{
966966
channels: {
967967
telegram: {
968-
errorPolicy: "reply",
968+
errorPolicy: "always",
969969
errorCooldownMs: 120000,
970970
groups: {
971971
"-1001234567890": {

0 commit comments

Comments
 (0)