Repository navigation
docs(channels): split the Telegram page by reader job - #142963
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. Reviewed September 9, 2026, 5:04 AM ET / 09:04 UTC (Revision 5). ClawSweeper reviewWhat this changesSplits Telegram documentation into ten task-focused pages, preserves existing section links, and updates navigation, translated titles, and channel labeling. Merge readiness✅ Ready for maintainer review Keep open: the documentation split remains useful, the earlier labeling finding is resolved, and the rebase preserves the reviewed Telegram pages. No actionable defects remain. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw’s Telegram documentation guides readers through setup, configuration, and troubleshooting. The documentation index and navigation direct readers to the relevant guide while preserving older links. flowchart TD
A[Documentation navigation] --> B[Telegram index]
C[Existing section links] --> D[Preserved anchors]
D --> B
B --> E[Setup and access guides]
B --> F[Messaging and operations references]
B --> G[Troubleshooting guide]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceDocs +248, Config +1. Total +249 across 14 files. View PR surface stats
Review metricsNone. Technical reviewBest possible solution: Retain the task-focused guides with stable legacy anchors, preserved examples, and matching navigation and labeling. Do we have a high-confidence way to reproduce the issue? Not applicable: this is a documentation reorganization; source and blob comparisons establish the relevant preservation checks. Is this the best way to solve the issue? Yes: the split follows the existing channel documentation pattern and preserves the original route, section links, and examples. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 2cb7337e2077. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (4 earlier review cycles)
|
|
Agreed on the finding, and deliberately out of scope for this PR.
This PR was scoped to leave "channel: telegram":
- changed-files:
- any-glob-to-any-file:
- "extensions/telegram/**"
- "docs/channels/telegram.md"
- "docs/channels/telegram/**"Two notes on blast radius while it is open:
Happy for a maintainer to land the one-line addition, here or separately. |
c2869d7 to
9a09e90
Compare
|
@clawsweeper re-review Addressed the one finding directly rather than deferring it. The earlier rebuttal argued this belonged in a separate CI PR. That was the wrong call: the split is what creates the unmatched directory, so the glob belongs with it. One line, and Head is now |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
a68e8c5 to
5d329d3
Compare
|
@clawsweeper re-review Rebased onto current The only conflict was Re-validated at the new head: MDX 1050 files pass, |
|
🦞🧹 I asked ClawSweeper to review this item again. |
docs/channels/telegram.md was 59,197 characters and mixed a tutorial, five how-to guides, a 3,428-word feature reference, explanation, and troubleshooting. It is now a short index over ten child pages, matching the shape the Slack and Discord splits already put on main. Children under docs/channels/telegram/: - setup.md - token, DM policy, gateway restart, first pairing, group add, and the BotFather privacy-mode settings - access-control.md - DM policy, group allowlists, mention gating, and per-chat tool policy - messaging.md - runtime behavior, stream previews, native commands, reply tags, ack reactions, and send limits - threads-and-sessions.md - forum topic session keys, per-topic agents, and ACP bindings - rich-messages.md - Bot API 10.3 rich messages, inline buttons, message actions, and exec approvals - media.md - photo albums, voice and video notes, locations, venues, and stickers - events.md - reaction notifications, config writes, and error reply policy - transports.md - long polling and webhook mode - mini-app.md - the Dashboard Mini App - troubleshooting.md - silent groups, missing commands, rejected tokens, and unstable polling Anchor strategy Every anchor the single page published stays alive on the index. The 50 ids were enumerated with parseDocsDocument, not a slug approximation, so both forms of the punctuated device-pairing heading are covered (device-pairing-commands-(device-pair-plugin) and its cleaned alias). 47 are authored <a id="..." /> stubs that link to the page now holding the content; the remaining 3 (configuration-reference, related, and the high-signal-telegram-fields accordion) are still published by the index itself, so they are not stubbed and no duplicate authored/canonical ID is raised. parseDocsDocument reports zero collisions across all eleven pages, and every one of the 47 stub destinations resolves on its target child. The container heading "## Feature reference" fanned out across seven child pages, so no single child is an honest destination for it. Its stub points at the index's own "What each page covers" list instead. Losslessness - 39 fenced blocks before, 39 after; info string and body byte-identical, zero missing and zero extra (json5 24, bash 7, json 4, yaml 3, text 1) - 3 table rows before, 3 after, row for row - 820 non-blank body lines before; 819 present verbatim after. The only line not carried over is the container heading "## Feature reference", whose anchor is preserved as a stub - prose words outside fences 6,601 -> 7,290; the +689 is the new index scaffolding and the ten child frontmatter blocks and ledes - links outside fences 12 -> 69; the +57 is 47 anchor stubs plus 10 child index entries - zero intra-page ](# links existed before the split and zero exist after - 59,197 characters in one page -> 11,636 index plus 59,369 across ten children docs.json gains a "Telegram" nav group in the same shape as the Slack and Discord groups. The zh-CN glossary gains the ten new page titles; zh-Hans-navigation.json is untouched. Closes audit findings: r3-0041, r3-0042, r3-1043
The split adds docs/channels/telegram/, which the file-exact glob does not match. Slack and Discord already carry the sibling docs/channels/<name>/** entry; this brings Telegram in line so children-only PRs stay labelled.
5d329d3 to
f64a442
Compare
|
@clawsweeper re-review Rebased again onto current |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
* docs(channels): split the Telegram page by reader job docs/channels/telegram.md was 59,197 characters and mixed a tutorial, five how-to guides, a 3,428-word feature reference, explanation, and troubleshooting. It is now a short index over ten child pages, matching the shape the Slack and Discord splits already put on main. Children under docs/channels/telegram/: - setup.md - token, DM policy, gateway restart, first pairing, group add, and the BotFather privacy-mode settings - access-control.md - DM policy, group allowlists, mention gating, and per-chat tool policy - messaging.md - runtime behavior, stream previews, native commands, reply tags, ack reactions, and send limits - threads-and-sessions.md - forum topic session keys, per-topic agents, and ACP bindings - rich-messages.md - Bot API 10.3 rich messages, inline buttons, message actions, and exec approvals - media.md - photo albums, voice and video notes, locations, venues, and stickers - events.md - reaction notifications, config writes, and error reply policy - transports.md - long polling and webhook mode - mini-app.md - the Dashboard Mini App - troubleshooting.md - silent groups, missing commands, rejected tokens, and unstable polling Anchor strategy Every anchor the single page published stays alive on the index. The 50 ids were enumerated with parseDocsDocument, not a slug approximation, so both forms of the punctuated device-pairing heading are covered (device-pairing-commands-(device-pair-plugin) and its cleaned alias). 47 are authored <a id="..." /> stubs that link to the page now holding the content; the remaining 3 (configuration-reference, related, and the high-signal-telegram-fields accordion) are still published by the index itself, so they are not stubbed and no duplicate authored/canonical ID is raised. parseDocsDocument reports zero collisions across all eleven pages, and every one of the 47 stub destinations resolves on its target child. The container heading "## Feature reference" fanned out across seven child pages, so no single child is an honest destination for it. Its stub points at the index's own "What each page covers" list instead. Losslessness - 39 fenced blocks before, 39 after; info string and body byte-identical, zero missing and zero extra (json5 24, bash 7, json 4, yaml 3, text 1) - 3 table rows before, 3 after, row for row - 820 non-blank body lines before; 819 present verbatim after. The only line not carried over is the container heading "## Feature reference", whose anchor is preserved as a stub - prose words outside fences 6,601 -> 7,290; the +689 is the new index scaffolding and the ten child frontmatter blocks and ledes - links outside fences 12 -> 69; the +57 is 47 anchor stubs plus 10 child index entries - zero intra-page ](# links existed before the split and zero exist after - 59,197 characters in one page -> 11,636 index plus 59,369 across ten children docs.json gains a "Telegram" nav group in the same shape as the Slack and Discord groups. The zh-CN glossary gains the ten new page titles; zh-Hans-navigation.json is untouched. Closes audit findings: r3-0041, r3-0042, r3-1043 * ci(labeler): label the Telegram docs children directory The split adds docs/channels/telegram/, which the file-exact glob does not match. Slack and Discord already carry the sibling docs/channels/<name>/** entry; this brings Telegram in line so children-only PRs stay labelled.
docs/channels/telegram.mdwas 59,197 characters and mixed a tutorial, five how-to guides, a 3,428-word feature reference, explanation, and troubleshooting. It is now a short index over ten child pages, in the same shape as the Slack and Discord splits already onmain.Children
telegram/setuptelegram/access-controltelegram/messagingtelegram/threads-and-sessionstelegram/rich-messagestelegram/mediatelegram/eventstelegram/transportstelegram/mini-apptelegram/troubleshootingHow closely this matches Slack and Discord
Seven of the ten children reuse the exact filenames the two sibling splits already use:
setup,access-control,messaging,threads-and-sessions,rich-messages,events,troubleshooting.mediamatches Slack (Discord has no analogue).transportsmatches Slack's Socket Mode / HTTP Request URLs page — Telegram's long-polling-vs-webhook choice is the same reader decision.Two places where Telegram genuinely does not fit, stated rather than forced:
mini-apphas no Slack or Slack analogue. It is the same call Discord made when it needed three voice pages Slack had no equivalent for. The Dashboard Mini App is a distinct reader job (open the Control UI from a phone) with its own Tailscale and Docker prerequisites, and on the single page it sat between quick setup and access control, interrupting the setup funnel (audit findingr3-1043).## Feature referencewas a container H2 whose thirteen accordions fan out across seven children, so no single child is an honest destination for its anchor. Discord solved the same problem by renaming one child section; here that would mis-route readers arriving fromdocs/tools/reactions.md, which links/channels/telegram#feature-referenceforreactionLevel(now onevents). Its stub points at the index's own "What each page covers" list instead.Anchor preservation
All 50 ids were enumerated with
parseDocsDocument, not a slug approximation. That mattered: the punctuated H3 "Device pairing commands (device-pairplugin)" mints two ids, an encodeddevice-pairing-commands-(device-pair-plugin)and a cleaneddevice-pairing-commands-device-pair-plugin. Both are preserved.<a id="..." />stubs on the index, each linking to the page that now holds the content.configuration-reference,related, and thehigh-signal-telegram-fieldsaccordion) are still published by the index itself, so they are deliberately not stubbed — stubbing them would raiseduplicate authored/canonical ID.parseDocsDocumentreports zero collisions across all eleven pages, and all 47 stub destinations resolve on their target child.docs-link-audit.Per-anchor redirects were not used:
redirectSource()throws on any source containing[?#], so a fragment cannot be a redirect source.Losslessness (asserted mechanically)
](#linksThe one body line not carried over is the container heading
## Feature reference; its anchor survives as a stub. The word delta (+689) and link delta (+57) are entirely the new index scaffolding: 47 anchor stubs, 10 child index entries, and ten child frontmatter blocks and ledes. No prose was rewritten.Test pins
docs-test-pins.pyreports 40 pins on the parent page. Every one was opened and classified: they aredocsPath: "/channels/telegram"plugin metadata and test fixtures,docsRefs: docs/channels/telegram.mdevidence lists in 12 qa scenarios and 2 qa-lab runtimes, 10taxonomy.yamlentries (no anchors), CHANGELOG release URLs, and two UI link-rendering assertions. None asserts on page content, and both the route/channels/telegramand the filedocs/channels/telegram.mdsurvive, so none breaks.src/docs/channel-config-examples.test.tsreads channel docs throughgit ls-files -- "docs/channels/*.md", whose pathspec recurses, so the children are covered by the same schema validation the single page had. It passes (3/3).Validators
check-docs-mdx.mjsDocs MDX check passed (1037 files)docs-link-audit.mjschecked_internal_links=10590 broken_links=0docs-link-audit.mjs --anchorsbroken_links=3— all three the known pre-existing#windows-app-nodeerrors ondocs/maturity/*, identical at the base shaformat-docs.mts --checkDocs formatting clean (1025 files)check-docs-i18n-glossary.mtsmarkdownlint-cli20 issues in 0 files(1024 files)check-docs-config-examples.mjsmaturity:checkmaturity docs inputs are valid in docssrc/docs/channel-config-examples.test.tssrc/scripts/docs-link-audit.test.tsBoth known failures were confirmed against a detached worktree at the base sha before this branch touched anything.
Nav, i18n, governance
docs.jsongains a"Telegram"nav group in the same shape as the Slack and Discord groups. The zh-CN glossary gains the ten new page titles (829 entries, 0 duplicate sources after union-resolving a conflict with the OpenTelemetry split).docs/.i18n/zh-Hans-navigation.jsonis untouched..github/CODEOWNERShas no rule matchingdocs/channels/**, so this split moves no file across an ownership boundary.Reported, not fixed
.github/labeler.yml:228scopes thechannel: telegramlabel todocs/channels/telegram.mdonly. The Slack and Discord entries carry both the page and adocs/channels/<name>/**glob (lines 212-213 and 45-46). Telegram's children will therefore not pick up the channel label. Left for a maintainer.Closes audit findings: r3-0041, r3-0042, r3-1043