teloxide/CHANGELOG.md

58 lines
3.5 KiB
Markdown
Raw Normal View History

2020-02-24 22:04:24 +01:00
# Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
2020-07-04 16:50:20 +02:00
## [0.3.0] - ???
2020-07-16 15:52:40 +02:00
### Added
2020-07-30 14:18:45 +02:00
- Support for typed bot commands ([issue 152](https://github.com/teloxide/teloxide/issues/152)).
2020-07-16 15:52:40 +02:00
- `BotBuilder`, which allows setting a default `ParseMode`.
- The `Transition`, `Subtransition`, `SubtransitionOutputType` traits.
2020-07-26 20:56:59 +02:00
- A nicer approach to manage dialogues via `#[derive(Transition)]` + `#[teloxide(subtransition)]` (see [`examples/dialogue_bot`](https://github.com/teloxide/teloxide/tree/af2aa218e7bfc442ab4475023a1c661834f576fc/examples/dialogue_bot)).
2020-07-30 14:18:45 +02:00
- The `redis-storage` feature -- enables the Redis support.
- The `cbor-serializer` feature -- enables the `CBOR` serializer for dialogues.
- The `bincode-serializer` feature -- enables the `Bincode` serializer for dialogues.
- The `frunk` feature -- enables `teloxide::utils::UpState`, which allows mapping from a structure of `field1, ..., fieldN` to a structure of `field1, ..., fieldN, fieldN+1`.
- Upgrade to v4.9 Telegram bots API.
- `teloxide::utils::client_from_env` -- constructs a client from the `TELOXIDE_TOKEN` environmental variable.
2020-07-30 15:25:56 +02:00
- Import `Transition`, `TransitionIn`, `TransitionOut`, `UpState` to `teloxide::prelude`.
- Import `repl` to `teloxide`.
2020-07-30 14:18:45 +02:00
- Let users inspect an unknown API error using `ApiErrorKind::Unknown(String)`. All the known API errors are placed into `KnownApiErrorKind`.
- Setters to all the API types.
- `teloxide::dispatching::dialogue::serializer` -- various serializers for memory storages. The `Serializer` trait, `Bincode`, `CBOR`, `JSON`.
2020-07-30 14:54:48 +02:00
- `teloxide::dispatching::repl`
2020-07-16 15:52:40 +02:00
### Deprecated
2020-07-30 14:18:45 +02:00
- `Bot::{from_env_with_client, new, with_client}`
2020-07-16 15:52:40 +02:00
2020-07-04 16:50:20 +02:00
### Changed
2020-07-30 14:18:45 +02:00
- `DialogueDispatcherHandlerCx` -> `DialogueWithCx`.
- `DispatcherHandlerCx` -> `UpdateWithCx`.
- Now provided description of unknown telegram error, by splitting ApiErrorKind at `ApiErrorKind` and `ApiErrorKindKnown` enums ([issue 199](https://github.com/teloxide/teloxide/issues/199)).
2020-07-17 12:04:25 +02:00
- Extract `Bot` from `Arc` ([issue 216](https://github.com/teloxide/teloxide/issues/230)).
2020-07-30 14:18:45 +02:00
- Mark all the API types as `#[non_exhaustive]`.
### Fixed
2020-07-30 14:19:45 +02:00
- Now methods which can send file to Telegram returns `tokio::io::Result<T>`. Early its could panic ([issue 216](https://github.com/teloxide/teloxide/issues/216)).
- If a bot wasn't triggered for several days, it stops responding ([issue 223](https://github.com/teloxide/teloxide/issues/223)).
2020-07-17 12:04:25 +02:00
2020-02-24 22:04:24 +01:00
## [0.2.0] - 2020-02-25
### Added
2020-03-27 13:56:32 +01:00
- The functionality to parse commands only with a correct bot's name (breaks backwards compatibility) ([Issue 168](https://github.com/teloxide/teloxide/issues/168)).
2020-02-24 22:04:24 +01:00
- This `CHANGELOG.md`.
### Fixed
2020-03-27 13:56:32 +01:00
- Fix parsing a pinned message ([Issue 167](https://github.com/teloxide/teloxide/issues/167)).
- Replace `LanguageCode` with `String`, because [the official Telegram documentation](https://core.telegram.org/bots/api#getchat) doesn't specify a concrete version of IETF language tag.
- Problems with the `poll_type` field ([Issue 178](https://github.com/teloxide/teloxide/issues/178)).
- Make `polling_default` actually a long polling update listener ([PR 182](https://github.com/teloxide/teloxide/pull/182)).
2020-02-24 22:04:24 +01:00
### Removed
- [either](https://crates.io/crates/either) from the dependencies in `Cargo.toml`.
- `teloxide-macros` migrated into [the separate repository](https://github.com/teloxide/teloxide-macros) to easier releases and testing.
## [0.1.0] - 2020-02-19
### Added
- This project.