From 31eda80da0f8a4219286af954d4fa0909ea07cd7 Mon Sep 17 00:00:00 2001 From: Hirrolot Date: Fri, 26 Mar 2021 10:22:19 -0700 Subject: [PATCH] Update README.md --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 8142b2cb..68d74f53 100644 --- a/README.md +++ b/README.md @@ -2,10 +2,15 @@ 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. - - `msg.text_owned()` -> `msg.map(ToOwned::to_owned)` + +Note: this list is non-exhaustive; for the full list of changes, see [teloxide-core's changelog] and the [changelog of teloxide]. + +[teloxide-core's changelog]: https://github.com/teloxide/teloxide-core/blob/master/CHANGELOG.md +[changelog of teloxide]: CHANGELOG.md