mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-23 06:51:01 +01:00
3.6 KiB
3.6 KiB
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[0.3.0] - ???
Added
- Support for typed bot commands (issue 152).
BotBuilder
, which allows setting a defaultParseMode
.- The
Transition
,Subtransition
,SubtransitionOutputType
traits. - A nicer approach to manage dialogues via
#[derive(Transition)]
+#[teloxide(subtransition)]
(seeexamples/dialogue_bot
). - The
redis-storage
feature -- enables the Redis support. - The
cbor-serializer
feature -- enables theCBOR
serializer for dialogues. - The
bincode-serializer
feature -- enables theBincode
serializer for dialogues. - The
frunk
feature -- enablesteloxide::utils::UpState
, which allows mapping from a structure offield1, ..., fieldN
to a structure offield1, ..., fieldN, fieldN+1
. - Upgrade to v4.9 Telegram bots API.
teloxide::utils::client_from_env
-- constructs a client from theTELOXIDE_TOKEN
environmental variable.- Import
Transition
,TransitionIn
,TransitionOut
,UpState
toteloxide::prelude
. - Import
repl
,commands_repl
toteloxide
. - Let users inspect an unknown API error using
ApiErrorKind::Unknown(String)
. All the known API errors are placed intoKnownApiErrorKind
. - Setters to all the API types.
teloxide::dispatching::dialogue::serializer
-- various serializers for memory storages. TheSerializer
trait,Bincode
,CBOR
,JSON
.teloxide::dispatching::{repl, commands_repl
Deprecated
Bot::{from_env_with_client, new, with_client}
Changed
DialogueDispatcherHandlerCx
->DialogueWithCx
.DispatcherHandlerCx
->UpdateWithCx
.- Now provided description of unknown telegram error, by splitting ApiErrorKind at
ApiErrorKind
andApiErrorKindKnown
enums (issue 199). - Extract
Bot
fromArc
(issue 216). - Mark all the API types as
#[non_exhaustive]
.
Fixed
- Now methods which can send file to Telegram returns
tokio::io::Result<T>
. Early its could panic (issue 216). - If a bot wasn't triggered for several days, it stops responding (issue 223).
[0.2.0] - 2020-02-25
Added
- The functionality to parse commands only with a correct bot's name (breaks backwards compatibility) (Issue 168).
- This
CHANGELOG.md
.
Fixed
- Fix parsing a pinned message (Issue 167).
- Replace
LanguageCode
withString
, because the official Telegram documentation doesn't specify a concrete version of IETF language tag. - Problems with the
poll_type
field (Issue 178). - Make
polling_default
actually a long polling update listener (PR 182).
Removed
- either from the dependencies in
Cargo.toml
. teloxide-macros
migrated into the separate repository to easier releases and testing.
[0.1.0] - 2020-02-19
Added
- This project.