1
0
mirror of https://github.com/InsanusMokrassar/TelegramBotAPI.git synced 2025-12-08 23:35:45 +00:00

improving work of behaviour_builder

This commit is contained in:
2021-01-19 18:50:45 +06:00
parent 30a4a7bd8b
commit fc71e028c4
11 changed files with 234 additions and 142 deletions

View File

@@ -8,8 +8,17 @@
* `Version`:
* `MicroUtils`: `0.4.16` -> `0.4.19`
* `Core`:
* **BC** Now `MediaGroupMessage` have a generic type related to `MediaGroupContent`
* **BREAKING CHANGE** Now `MediaGroupMessage` have a generic type related to `MediaGroupContent`
* Methods and types related to `MediaGroupMessage` have been modified according to their meanings
* **Important Change** `FlowsUpdatesFilter` now is an interface. Old class has been renamed to
`DefaultFlowsUpdatesFilter` and factory method `FlowsUpdatesFilter` has been added
* `Behaviour Builder`:
* Trigger and expectation extensions for `MessageContent` (`onContentMessage` and `waitContentMessage`)
* `onMediaGroup` has been replaced
* `waitMediaGroup` has been added
* `onVisualMediaGroup` now is just an alternative to `onVisualGallery`
* `command` and `onCommand` expectations has been added for commands `String` variant
* New extensions `BehaviourContext#oneOf`, `BehaviourContext#parallel` and `Deferred<T>#withAction`
## 0.31.0