Canoe Versions Save

Functional Telegram Bot API for Scala

v0.6.0

2 years ago

General 0.6.0 release. This release introduces support for Scala 3 and cats-effect 3. Due to the upstream changes, this release is not binary compatible with 0.5.x but the behavior and expected properties (i.e. type class instances) of Scenario were unchanged.

v0.5.1

3 years ago

Minor release, backward compatible with 0.5.0 version.

v0.5.0

3 years ago

General 0.5.0 release. This release is not binary compatible with 0.4.x versions.

Improvements

  • Upgraded to Telegram Bot API v4.9
  • Added timeout support for scenarios using within method.
  • Provided Bracket[Scenario[F, *], Throwable] instance.
  • Fixed an issue with the default host for a webhook mode.
  • Provided bot constructor consuming a stream of updates.
  • Dependencies, scala, and scalajs version upgrades.
  • Minor improvements.

API changes

  • Bracket instance replacing MonadError instance for Scenario.
  • within method is added to Scenario API.
  • markdown method on TextContent uses updated MarkdownV2 parse mode. In order to use legacy Markdown mode, use markdownOld method instead.

v0.5.0-RC1

3 years ago

v0.4.1

4 years ago

Dependencies version update

v0.4.0

4 years ago

General 0.4.0 release. This release is not binary compatible with 0.3.x versions.

Improvements:

  • Added more tests for core library concepts
  • Added new bot examples
  • Improved Scenario API
  • Restricted access to internal classes

Main API changes:

  • start and next methods in Scenario companion object are replaced with expect method in the same object
  • pure method in Scenario companion object now uses partially applied type technique, which implies that you only have to specify effect type whenever compiler cannot infer the whole type (e.g. Scenario.pure[F, Int](12) is now Scenario.pure[F](12))
  • cancelOn and cancelWith methods in Scenario class are replaced with corresponding stopOn and stopWith methods in the same class

v0.3.1

4 years ago

This release is binary compatible with 0.3.0 version.

Main improvements:

  • Gracefully handling updates that were unsuccessfully decoded.
  • Improved the way scenarios are executed: each scenario execution is not blocked by any other scenario execution, meaning that the same scenario may be invoked many times before it has been completed.

v0.3.0

4 years ago

General 0.3.0 release. This release is not binary or source compatible with the previous 0.2.0 version.

Main improvements:

  • Added support for Scala.js
  • Improved error handling
  • Scenario serves MonadError instance for any F
  • Fixed some serialization bugs

v0.2.0

4 years ago

General 0.2.0 release. This release is not binary or source compatible with the previous 0.1.2 version since it contains small changes to the Telegram models.

Main improvements:

  • Updated all Telegram models to be coherent with the current Telegram Bot API (v4.4)
  • Provided error handling
  • Added logging
  • Encapsulated internal logic
  • Improved API syntax
  • Improved documentation

v0.1.2

4 years ago

Main improvements:

  • provided webhooks support
  • added methods syntax
  • added missing type of Telegram message: ChatGroupCreated