Open
Description
This library has a few design problems and it is very hard to extend and improve functionality.
Small TODO and first steps:
- Change namespace to more relevant
- Use dependency injection and service container
- Drop abstract classes and static calls (mostly for
Request
andDB
), or wrap them inside facades - Introduce Config class and remove configuration logic from Telegram class
- Remove Botan integration from core library and add as a package (?)
- Improve creating of custom commands
I forgot some details in current library implementation and I will have some questions. Lets discuss them in this thread
cc @php-telegram-bot/developers