这是indexloc提供的服务,不要输入任何密码
Skip to content

Releases: koot-labs/telegram-bot-dialogs

0.5.1

05 Jul 22:37

Choose a tag to compare

What's Changed

  • FIX: Fix jumping to the same step (support recursive steps) (see ccc7c1d)
  • CHANGED: throw InvalidDialogStep exception 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() and Dialog::afterEveryStep() (see 042ab94)
  • NEW: ⚙️ Add more tests

Full Changelog: 0.5.0...0.5.1

0.5.0

05 Jul 13:07

Choose a tag to compare

What's Changed

  • [BC] REMOVED: Property Dialog#$update was removed
  • [BC] REMOVED: Property Dialog#$current was removed (use $next instead)
  • [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() requires Update instance as an argument
  • [BC] CHANGED: Dialog#proceed() requires Update instance as an argument
  • [BC] CHANGED: Method jump() of class Dialog visibility reduced from public to protected
  • [BC] CHANGED: Method remember() of class Dialog visibility reduced from public to protected
  • 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

04 Jul 22:36

Choose a tag to compare

What's Changed

  • [BC]: Changed serialization format for Redis (and Store prefix so it will not cause Exceptions)
  • [BC]: Rename KootLabs\TelegramBotDialogs\Dialogs to KootLabs\TelegramBotDialogs\DialogManager
  • [BC]: DialogManager now requires Store instead of Redis
  • [BC]: Remove DichotomousDialog class 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. DialogException is an interface now. Plus added new InvalidDialogStep and UnexpectedUpdateType
  • [New]: Add DialogManager::setBot(Api $bot) to support multiple bots
  • [New]: Support custom Store implementations (decouple DialogManager from Redis)
  • [New]: Make array-syntax steps more flexible (via a479e5b)
  • [Fix]: Dialogs::exists() to process non-Message Updates

Full Changelog: 0.3.2...0.4.0

0.3.2

02 Jul 10:49
41f1714

Choose a tag to compare

What's Changed

  • Improve documentation
  • Make API more readable, deprecate Dialogs::add()

Full Changelog: 0.3.1...0.3.2

0.3.1

01 Jul 14:59

Choose a tag to compare

What's Changed

  • Improve documentation
  • Normalize composer.json

Full Changelog: 0.3.0...0.3.1

0.3.0

01 Jul 14:16
2df9e97

Choose a tag to compare

What's Changed

  • New: Dialog::ttl() and Dialog::$ttl to 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-sdk version 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 DichotomousDialog into a separate abstract class
    • [BC] Rename Laravel alias for Dialogs from dialogs to telegram.dialogs
    • [BC] Finalize classes or make them abstract

Full Changelog: 0.2.1...0.3.0