add some notes on the architecture page

Hinrich Mahler 2022-04-23 08:26:32 +02:00
parent b174fc80d4
commit 40798d8339

@ -1,3 +1,23 @@
# Architecture
> Here be text
![PTB Architecture](https://gcdnb.pbrd.co/images/VYfQoTJBY1Mo.png?o=1)
## Required and optional components
> Explain which components are opt-in and which are opt-out.
* `Updater`
* `JobQueue`
* `CallbackDataCache`
* `Defaults`
* `BasePersistence`
* `ContextTypes`
## Customizing Components
> Explain which components can (or even must) be replaced by custom implementations
* `BasePersistence`
* `BaseRequest`
* `Handler`
* `Application` (special case in the builder pattern)