Skip to content

meloshnikov/clean-architecture-telegram-bot

Repository files navigation

Telegram bot on a Clean Architecture

An example of a Telegram bot built on clean architecture principles.

Application structure

# 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

About

πŸ€– Telegram bot on a Clean Architecture

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages