UpdateAttributeis added, so router dynamic rules and update handlers may use typed arguments received from anUpdateobject- Added Extended Callable Definitions support to dynamic route rules.
- Added Extended Callable Definitions support to route actions. Usage of UpdateHandlerInterface as an action is now deprecated, and this ability will be removed in future versions.
- Response tags and subscriptions are added.
- Params section renamed from
botasis/telegram-bottobotasis/runtime. yiisoft/config-compatible configuration added for all possible classes. Dynamic part is moved to params.GetUpdatesCommanddon't throw exceptions anymore. It just logs them to a PSR logger instead.- More docs are added
- Bugfix: IgnoredErrorHandler was not working
- Bugfix:
StateJsondidn't correctly set data when data is not a string
- More PhpDocs for
StateRepositoryInterfaceandStateMiddleware
- State management is added. Users now may use chat/user state in router rules and update handlers
UserIdvalue object is removed. Usingstringinstead.
- Documentation is added.
- UserRepositoryInterface is removed as it's not responsibility of the Runtime library and is not used here.
- Routes are now objects instead of arrays
- Fix failed tests
- PhpUnit cache is removed from the repository
- Telegram Update variables are completely renamed from $request to $update