ktgbotapi-patterns
Installation
SKILL.md
KTgBotAPI Architecture Patterns
Patterns for organizing Telegram bot projects with ktgbotapi.
Current Versions (use these — do not downgrade)
| Component | Version | Notes |
|---|---|---|
| ktgbotapi | 33.1.0 | See ktgbotapi skill for v32→v33 breaking changes (BotToken value class, Unit return types, Poll API). |
| Metro | 1.0.0 | Default DI for standalone bots — compile-time graph, no runtime crashes. See metro-di-mobile skill. |
| Spring Boot | 3.4.x | Use Spring DI when bot lives inside a full backend (sharing services, DB, observability). See kotlin-spring-boot skill. |
| Ktor client | 3.4.3 | See ktor-client skill for client patterns. |
| Kotlin | 2.3.21 |
Koin is intentionally not in this skill anymore. Earlier revisions documented Koin 4.x as the default. We removed it because: (1) compile-time DI catches missing bindings before deploy — Telegram bots can run for weeks without hitting a code path, so a runtime DI miss is found by users, not CI; (2) for monostack setups (mobile + bot + backend on Metro), one DI framework everywhere wins over two; (3) when the bot is part of a Spring backend, Spring DI is already there. If a project genuinely needs Koin (KMP bot sharing modules with a Koin-driven mobile app, or hot-reload module swapping), apply Koin manually — but don't take it from this skill.