Skip to content

Commit dad7768

Browse files
committed
docs(telegram): document group history removal
1 parent b07fd6f commit dad7768

3 files changed

Lines changed: 12 additions & 17 deletions

File tree

docs/channels/ambient-room-events.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ Room events stay strict even when other group requests use automatic replies. Un
188188

189189
Set `historyLimit: 0` to disable group history context.
190190

191-
Supported room-event channels keep recent ambient room messages as context. Discord keeps room-event history until a visible Discord send succeeds, so quiet context is not lost before message-tool delivery.
191+
Supported room-event channels keep recent ambient room messages as context. Telegram keeps an always-on rolling per-group window bounded by `historyLimit`; user-request turns select entries after the bot's last recorded reply, while room-event turns receive the full recent window so the model can see its own recent posts. The retired Telegram `includeGroupHistoryContext` mode key is removed by `openclaw doctor --fix`.
192192

193193
## Troubleshooting
194194

docs/channels/telegram.md

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -280,22 +280,10 @@ curl "https://api.telegram.org/bot<bot_token>/getUpdates"
280280
}
281281
```
282282

283-
Group history context defaults to `mention-only`: prior group messages are
284-
included only when they were addressed to the bot, are replies to the bot,
285-
or are the bot's own messages. Set `includeGroupHistoryContext: "recent"` to
286-
include recent room history for trusted groups. Set
287-
`includeGroupHistoryContext: "none"` to send no prior Telegram group history
288-
with the next turn.
289-
290-
```json5
291-
{
292-
channels: {
293-
telegram: {
294-
includeGroupHistoryContext: "recent",
295-
},
296-
},
297-
}
298-
```
283+
Group history context is always on for groups and bounded by
284+
`historyLimit`. Set `channels.telegram.historyLimit: 0` to disable the
285+
Telegram group history window. The retired `includeGroupHistoryContext`
286+
key is removed by `openclaw doctor --fix`.
299287

300288
Getting the group chat ID:
301289

extensions/telegram/AGENTS.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,13 @@ Verified against Telegram Bot API 10.1, July 1 2026.
8282
hydration path later.
8383
- Current local chat context must outrank stale reply ancestry in the prompt.
8484
Old replied-to messages should not look like the active conversation.
85+
- The group history window is always on for groups and bounded by
86+
`historyLimit`. Do not reintroduce prompt-history gating modes; that
87+
regression blinded ambient rooms.
88+
- The group history window is rolling. Use self-entry watermark selection for
89+
"since your last reply" views; do not reintroduce destructive clears because
90+
room events are not persisted to the session and cleared context is
91+
unrecoverable.
8592
- Pairing is DM-only. Group and topic authorization need explicit config
8693
allowlists.
8794
- Telegram allowlists use numeric sender IDs. Usernames are optional, mutable,

0 commit comments

Comments
 (0)