Releases: koot-labs/telegram-bot-dialogs
Releases · koot-labs/telegram-bot-dialogs
0.5.1
What's Changed
- FIX: Fix jumping to the same step (support recursive steps) (see ccc7c1d)
- CHANGED: throw
InvalidDialogStepexception if a step with a given index not exist (instead of generic PHP error) - NEW:
Dialog::forget(string $key)added (45d4e9a) - NEW: ⚙️ Added experimental
Dialog::beforeEveryStep()andDialog::afterEveryStep()(see 042ab94) - NEW: ⚙️ Add more tests
Full Changelog: 0.5.0...0.5.1
0.5.0
What's Changed
- [BC] REMOVED: Property
Dialog#$updatewas removed - [BC] REMOVED: Property
Dialog#$currentwas removed (use$nextinstead) - [BC] REMOVED: Method
Dialog#setNext()was removed - [BC] REMOVED: Method
Dialog#getNext()was removed - [BC] REMOVED: Method
Dialog#setUpdate()was removed - [BC] REMOVED: Method
Dialog#getChat()was removed - [BC] CHANGED:
Dialog#setBot()was marked@internal - [BC] CHANGED:
Dialog#start()requiresUpdateinstance as an argument - [BC] CHANGED:
Dialog#proceed()requiresUpdateinstance as an argument - [BC] CHANGED: Method
jump()of classDialogvisibility reduced frompublictoprotected - [BC] CHANGED: Method
remember()of classDialogvisibility reduced frompublictoprotected - CHANGED: throw InvalidDialogStep exception if a step with a given index not exist (instead of generic PHP error)
- NEW: ⚙️ Add tests
- NEW: ⚙️ Setup CI
Full Changelog: 0.4.0...0.5.0
0.4.0
What's Changed
- [BC]: Changed serialization format for Redis (and Store prefix so it will not cause Exceptions)
- [BC]: Rename
KootLabs\TelegramBotDialogs\DialogstoKootLabs\TelegramBotDialogs\DialogManager - [BC]: DialogManager now requires Store instead of Redis
- [BC]: Remove
DichotomousDialogclass and it's functionality - [BC]: Rename Laravel config filename and make it publishable
- [BC]:
Dialog::setNext()changed from public to protected - [BC]: Use a new exception hierarchy.
DialogExceptionis an interface now. Plus added newInvalidDialogStepandUnexpectedUpdateType - [New]: Add
DialogManager::setBot(Api $bot)to support multiple bots - [New]: Support custom Store implementations (decouple
DialogManagerfrom Redis) - [New]: Make array-syntax steps more flexible (via a479e5b)
- [Fix]:
Dialogs::exists()to process non-MessageUpdates
Full Changelog: 0.3.2...0.4.0
0.3.2
What's Changed
- Improve documentation
- Make API more readable, deprecate
Dialogs::add()
Full Changelog: 0.3.1...0.3.2
0.3.1
0.3.0
What's Changed
- New:
Dialog::ttl()andDialog::$ttlto specify how long dialog state should be stored on a Store - New: Support Laravel 9
- Change: Minimum PHP version is 8.0
- Change: Minimum
irazasyed/telegram-bot-sdkversion is 3 - [BC] Change namespace to
\KootLabs\TelegramBotDialogs\ - Refactor fork to a simple and stable standalone package by @lptn in #1
- [BC] Remove .yml support
- [BC] Add property, parameter and return types
- [BC] Extract
DichotomousDialoginto a separate abstract class - [BC] Rename Laravel alias for
Dialogsfromdialogstotelegram.dialogs - [BC] Finalize classes or make them abstract
Full Changelog: 0.2.1...0.3.0