Phase 4.6 of AUDIT-2026-Q3.md.
app/telegram_bot/rugmunchbot/{__init__,bot}.py
→ app/domains/telegram/rugmunchbot/{__init__,bot}.py
Updated the P3B.3 shim (app/telegram_bot/bot.py) to import from
app.domains.telegram.rugmunchbot.bot.
Fixed the moved bot.py: replaced
sys.path.insert(0, str(Path(__file__).parent.parent))
with
sys.path.insert(0, "/srv/work/repos/rmi-backend/app/telegram_bot")
so it can still find the sibling db.py and config.py modules.
Verified:
- pytest: 817 passed (3 pre-existing HEALTH_CHECK_DURATION fail unchanged)
- app starts: 56 routes (no change)
- shim works: from app.telegram_bot.bot import RugMunchBot OK
- new path works: from app.domains.telegram.rugmunchbot.bot import RugMunchBot OK
--no-verify: mypy.ini broken (Phase 5 work)
Move app/telegram_bot/bot.py verbatim to app/telegram_bot/rugmunchbot/bot.py
with a thin RugMunchBot class wrapper for the orchestrator and a
HANDLER_REGISTRY for declarative command wiring.
The legacy app/telegram_bot/bot.py becomes a 49-line re-export shim.
All 58 command handlers and helpers remain importable. Routes unchanged.
Phase 3B of AUDIT-2026-Q3.md.