Skip to content

refactor(telegram): split outbound send operations - #113222

Merged
steipete merged 2 commits into
mainfrom
refactor/telegram-send-split
Jul 24, 2026
Merged

steipete merged 2 commits into
mainfrom
refactor/telegram-send-split

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The Telegram outbound transport had grown into a 2,771-line module with a grandfathered max-lines suppression. That made ownership boundaries hard to review and forced unrelated send, edit, media, forum-topic, and action changes through one file.

Why This Change Was Made

This maintainer-requested refactor splits the existing implementation along cohesive transport boundaries: API/client lifetime, message text delivery, media orchestration, edits, generic actions, forum topics, locations, and poll/sticker sends. The existing send.ts entry point remains a narrow barrel, so callers and exported behavior are unchanged; the max-lines suppression and baseline entry are removed.

The production diff grows by 247 lines because each module now declares its own static imports and narrow cross-module type contract. It adds no runtime branch, fallback, config, protocol, or compatibility path. Every resulting production module is at most 604 lines.

AI-assisted: yes. The implementation was reviewed with the repository autoreview workflow.

User Impact

No user-visible behavior change. Telegram outbound payload construction, fallback ordering, chunking, media delivery, edits, actions, and public imports remain unchanged, while future maintenance can be scoped to smaller owner modules.

Evidence

@openclaw-barnacle openclaw-barnacle Bot added channel: telegram Channel integration: telegram size: XL maintainer Maintainer-authored PR labels Jul 24, 2026
@steipete
steipete marked this pull request as ready for review July 24, 2026 05:02
@steipete
steipete force-pushed the refactor/telegram-send-split branch from b16a77e to f43e88f Compare July 24, 2026 06:18
@steipete
steipete force-pushed the refactor/telegram-send-split branch from f43e88f to f8dd7de Compare July 24, 2026 06:27
@steipete
steipete merged commit 07e625d into main Jul 24, 2026
110 checks passed
@steipete
steipete deleted the refactor/telegram-send-split branch July 24, 2026 06:38
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

channel: telegram Channel integration: telegram maintainer Maintainer-authored PR size: XL

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant