Skip to content

Refactor library architecture #826

Open
@akalongman

Description

@akalongman

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 and DB), 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions