Summary
Split oversized source files into focused modules, starting with bot.js and then applying the same approach to other files that mix unrelated responsibilities.
Context
Large files make behavior harder to understand, test, and change safely. Refactoring should preserve current behavior while improving module boundaries and keeping Telegram-specific logic out of core services.
Acceptance Criteria
Notes
Keep changes behavior-preserving and minimal. Follow the existing architecture boundaries in AGENTS.md.
Summary
Split oversized source files into focused modules, starting with
bot.jsand then applying the same approach to other files that mix unrelated responsibilities.Context
Large files make behavior harder to understand, test, and change safely. Refactoring should preserve current behavior while improving module boundaries and keeping Telegram-specific logic out of core services.
Acceptance Criteria
bot.jsis split into cohesive modules without changing user-facing behavior.Notes
Keep changes behavior-preserving and minimal. Follow the existing architecture boundaries in
AGENTS.md.