Skip to content

Releases: al3x5dev/xbot-devkit

v0.3.1

18 Mar 04:17

Choose a tag to compare

Changelog

  • The relationship with the sub-entities has been added.

v0.3

16 Mar 03:15

Choose a tag to compare

Changelog

Changed

  • Replaced the old api.json-based method system with a generated Methods trait.
  • Methods are now directly available in the codebase, improving IDE support and static analysis.
  • Entities directory has been moved to a new location to simplify the project structure.

Removed

  • Removed automatic generation and usage of api.json.
  • Removed runtime parsing of method definitions from JSON.

Added

  • Generated API methods now include:
  • PHP type hints
  • Return types
  • Improved PHPDoc comments
  • Full IDE autocompletion support for Telegram Bot API methods.

Fixed

  • Fixed incorrect nullable union type generation (?TypeA|TypeB).
  • Fixed parameter ordering issues that broke named arguments.
  • Fixed incorrect return type parsing from Telegram documentation.

v0.2.4

07 Aug 04:10

Choose a tag to compare

Changelog

  • The visibility of resolver methods for subentities has been made public.
  • The library documentation has been improved.

v0.2.3

25 Jul 00:20

Choose a tag to compare

Changelog

  • Completion message is added
  • Installation and use of this library is documented

v0.2.2

24 Jul 23:52

Choose a tag to compare

Changelog

  • Improved custom entity errors.
  • Added support for determining the type of update returned by Telegram.
  • Added support for determining command type messages.

v0.2.1

10 Jul 02:30

Choose a tag to compare

Changelog

Add support for custom methods

v0.2.0

10 Jul 00:30
f52b228

Choose a tag to compare

Changelog

  • Fix autoload bug

v.0.1

09 Jul 05:26
ccda93a

Choose a tag to compare

Changelog

Added

  • First public release of xbot-devkit.
  • Scrapper class to parse Telegram Bot API HTML documentation.
  • Generator class to convert parsed data into PHP entity classes.
  • CLI command bin/update-api to automate the scraping and generation process.
  • PSR-4 autoloading (Al3x5\\xBot\\DevKit\\).
  • Composer bin entry for ease of use.