Skip to content

Releases: tg-rs/carapax

0.17.0

07 May 19:57
189d174
Compare
Choose a tag to compare
  • Updated dependencies:
    • tgbot 0.23

0.16.0

01 Apr 17:48
f25f809
Compare
Choose a tag to compare
  • Updated dependencies:
    • seance 0.11
    • tgbot 0.22
    • tokio 1.37

0.15.0

18 Feb 03:28
8604ccf
Compare
Choose a tag to compare
  • Updated dependencies:
    • seance 0.10
    • tgbot 0.21
    • tokio 1.36

0.14.0

01 Jan 20:27
ebec86e
Compare
Choose a tag to compare
  • Updated dependencies:
    • seance 0.9
    • tgbot 0.20
    • tokio 1.35
  • async fn in traits:
    • Removed TryFromInput::Future associated type.
    • Removed Handler::Future associated type.

0.13.0

05 Dec 20:26
7de7fd8
Compare
Choose a tag to compare
  • Updated dependencies:
    • governor 0.6
    • seance 0.8
    • tgbot 0.19
    • tokio 1.34
  • Renamed add method of Chain struct to with.
  • Updated TryFromInput implementations according to changes in tgbot.
  • Renamed shortcuts:
    • AccessExt: access to with_access_policy.
    • PredicateExt: predicate to with_predicate.
    • CommandExt: command to with_command.
    • DialogueExt: dialogue to with_dialogue.
  • Extracted a predicate from DialogueDecorator.
    This allows to skip a dialogue handler in Chain using a first-found strategy.
    As a result, you can now use multiple dialogue handlers.
    Previously, only one handler could be used, and it had to be the last handler in a chain.

0.12.0

10 Feb 09:14
Compare
Choose a tag to compare
  • Updated tgbot version to 0.18.
  • Added Chain::once method which allows to run first found handler only.
  • Removed PrincipalUser and PrincipalChat in favor of UserId and ChatId.

0.11.0

02 Feb 10:49
Compare
Choose a tag to compare
  • Tokio 1.16 and tgbot 0.17 support.
  • New handlers API.
    • Removed async_trait and carapax-codegen dependencies.
    • Removed Dispatcher in favor of App and Chain.
    • HandlerResult is the alias to Result<(), HandlerError> now.
    • HandlerError now wraps Box<dyn Error>.
    • Changed signature of Handler trait.
    • Added HandlerInput struct containing Context and Update.
    • Renamed TryFromUpdate trait to TryFromInput.
    • Removed ErrorPolicy.
    • Added Ref<T> to allow to pass objects from context to handlers directly.
    • Added Predicate handler to allow to wrap handlers with predicates.
    • Added CommandPredicate handler to allow to run a handler only for a specific command.
  • Replaced ratelimit_meter by governor.
  • Removed i18n support.
  • And other breaking changes, see examples for more information.

0.10.0

09 Jan 09:17
Compare
Choose a tag to compare
  • Added tokio 1.0 and tgbot 0.12 support.

0.9.0

15 Nov 02:34
Compare
Choose a tag to compare
  • Added tgbot 0.11.0 support.

0.8.0

20 Jun 16:19
Compare
Choose a tag to compare
  • Added tgbot 0.10.0 support.