Releases: tg-rs/carapax
Releases · tg-rs/carapax
0.17.0
- Updated dependencies:
- tgbot 0.23
0.16.0
- Updated dependencies:
- seance 0.11
- tgbot 0.22
- tokio 1.37
0.15.0
- Updated dependencies:
- seance 0.10
- tgbot 0.21
- tokio 1.36
0.14.0
- 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.
- Removed
0.13.0
- Updated dependencies:
- governor 0.6
- seance 0.8
- tgbot 0.19
- tokio 1.34
- Renamed
add
method ofChain
struct towith
. - Updated
TryFromInput
implementations according to changes in tgbot. - Renamed shortcuts:
AccessExt
:access
towith_access_policy
.PredicateExt
:predicate
towith_predicate
.CommandExt
:command
towith_command
.DialogueExt
:dialogue
towith_dialogue
.
- Extracted a predicate from
DialogueDecorator
.
This allows to skip a dialogue handler inChain
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
- Updated tgbot version to 0.18.
- Added
Chain::once
method which allows to run first found handler only. - Removed
PrincipalUser
andPrincipalChat
in favor ofUserId
andChatId
.
0.11.0
- Tokio 1.16 and tgbot 0.17 support.
- New handlers API.
- Removed
async_trait
andcarapax-codegen
dependencies. - Removed
Dispatcher
in favor ofApp
andChain
. HandlerResult
is the alias toResult<(), HandlerError>
now.HandlerError
now wrapsBox<dyn Error>
.- Changed signature of
Handler
trait. - Added
HandlerInput
struct containingContext
andUpdate
. - Renamed
TryFromUpdate
trait toTryFromInput
. - 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.
- Removed
- Replaced
ratelimit_meter
bygovernor
. - Removed i18n support.
- And other breaking changes, see examples for more information.
0.10.0
- Added tokio 1.0 and tgbot 0.12 support.
0.9.0
- Added tgbot 0.11.0 support.
0.8.0
- Added tgbot 0.10.0 support.