An example of a Telegram bot built on clean architecture principles.
# src/
βββ # core/
β βββ # entities/ Business entities
β βββ # ports/ Interfaces to the outside world
β βββ # usecases/ Use cases
β βββ # mappers/ Data conversion between layers
β βββ # schemas/ Validation and types for customizations
β βββ # services/ Domain logic services
βββ # infrastructure/
β βββ # config/ Application configuration
β βββ # database/ Database implementations
β βββ # llm/ LLM providers
β βββ # cache/ Caching implementations
β βββ # di/ DI container
β βββ # scheduler/ Task Scheduler (Cron)
β βββ # telegram/ Telegram bot
βββ # application/ Build and Run
βββ * index.ts Entry point