Skip to content

Rewrite / DRY up entities #193

Closed
Closed
@noplanman

Description

@noplanman

Instead of adding all the specific entity variables and methods, it would make sense to have a base class with a magic __call() method that handles all requests.
Check this example from the other PHP Telegram library.

It would save a whole bunch of code and clean up effort, making it a lot more understandable and easier to test / maintain etc.

DRY = Don't Repeat Yourself

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions