From 674b1f974ad170f5e78c5f1e4320ddcabe94fc7f Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Thu, 8 Jul 2021 15:22:13 +0600 Subject: [PATCH 1/5] Prepare for v0.5.0 --- CHANGELOG.md | 2 ++ Cargo.toml | 5 +++-- README.md | 2 +- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b06d07d4..ac7d6ca8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [unreleased] +## [0.5.0] - 2021-07-08 + ### Added - `Storage::get_dialogue` to obtain a dialogue indexed by a chat ID. diff --git a/Cargo.toml b/Cargo.toml index d86f5f0c..33560178 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,16 +1,17 @@ [package] name = "teloxide" -version = "0.4.0" +version = "0.5.0" edition = "2018" description = "An elegant Telegram bots framework for Rust" repository = "https://github.com/teloxide/teloxide" documentation = "https://docs.rs/teloxide/" readme = "README.md" keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api"] +categories = ["web-programming", "api-bindings"] license = "MIT" exclude = ["media"] authors = [ - "Temirkhan Myrzamadi ", + "Hirrolot ", "Waffle Lapkin ", "p0lunin ", "Mishko torop'izhko", diff --git a/README.md b/README.md index 088dd691..1189d1da 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ Note: this list is non-exhaustive; for the full list of changes, see the [teloxi - + From f85c77159061a142e2091acca0e7c4f69a483314 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Thu, 8 Jul 2021 15:24:55 +0600 Subject: [PATCH 2/5] Point to the migration guide from `README.md` --- README.md | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/README.md b/README.md index 1189d1da..32ef799e 100644 --- a/README.md +++ b/README.md @@ -1,18 +1,4 @@ -
- FYI: Updating from v0.3.4 to v0.4.0 - - - `answer_str` -> `answer` - - `msg.text_owned()` -> `msg.map(ToOwned::to_owned)` - - Use `.auto_send()` to construct your bot: `let bot = Bot::from_env().auto_send();`. This allows not to write `.send()` after each request; now it is done automatically. Also, rewrite `UpdateWithCx` -> `UpdateWithCx, Message>`. - - `ResponseResult<()>` -> `Result<(), Box>` (or import `ResponseResult` beforehand: `use teloxide::requests::ResponseResult;`) - - Tokio updated to v1.2. - -Note: this list is non-exhaustive; for the full list of changes, see the [teloxide-core changelog] and [teloxide changelog]. - -[teloxide-core changelog]: https://github.com/teloxide/teloxide-core/blob/master/CHANGELOG.md -[teloxide changelog]: CHANGELOG.md - -
+[v0.4.0 => v0.5.0 migration guide >>](MIGRATION_GUIDE.md)
From 3e59041f9b9515c56d6d76080796c1a529bc3d7b Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Thu, 8 Jul 2021 15:26:49 +0600 Subject: [PATCH 3/5] Italicise the migration guide link (`README.md`) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 32ef799e..58bcecff 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[v0.4.0 => v0.5.0 migration guide >>](MIGRATION_GUIDE.md) +[_v0.4.0 => v0.5.0 migration guide >>_](MIGRATION_GUIDE.md)
From 72e9821b15c81f27a671541ee6392609f8120b04 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Thu, 8 Jul 2021 15:31:35 +0600 Subject: [PATCH 4/5] Add the `asynchronous` category to `Cargo.toml` --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 33560178..a6410918 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,7 +7,7 @@ repository = "https://github.com/teloxide/teloxide" documentation = "https://docs.rs/teloxide/" readme = "README.md" keywords = ["teloxide", "telegram", "telegram-bot", "telegram-bot-api"] -categories = ["web-programming", "api-bindings"] +categories = ["web-programming", "api-bindings", "asynchronous"] license = "MIT" exclude = ["media"] authors = [ From cdfadb3517fd6a360a7b730e872fa1e8c370ade0 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Thu, 8 Jul 2021 02:43:40 -0700 Subject: [PATCH 5/5] Update README.md Co-authored-by: Waffle Lapkin --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 58bcecff..6e2a1a86 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -[_v0.4.0 => v0.5.0 migration guide >>_](MIGRATION_GUIDE.md) +[_v0.4.0 => v0.5.0 migration guide >>_](MIGRATION_GUIDE.md#04---05)