mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-14 11:44:04 +01:00
Apply review suggestions
This commit is contained in:
parent
63611cc7ae
commit
13e4bdb4e7
1 changed files with 4 additions and 4 deletions
|
@ -1,11 +1,11 @@
|
|||
<details>
|
||||
<summary>FYI: Updating to v0.4.0</summary>
|
||||
<summary>FYI: Updating from v0.3.4 to v0.4.0</summary>
|
||||
|
||||
- `answer_str` -> `answer`
|
||||
- Don't write `.send()` after each request, now it is done automatically.
|
||||
- Use `.auto_send()` to construct your bot: `let bot = Bot::from_env().auto_send();`.
|
||||
- `UpdateWithCx<Message>` -> `UpdateWithCx<AutoSend<Bot>, Message>`
|
||||
- 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<Message>` -> `UpdateWithCx<AutoSend<Bot>, Message>`.
|
||||
- `ResponseResult<()>` -> `Result<(), Box<dyn Error + Send + Sync>>` (or import `ResponseResult` beforehand: `use teloxide::requests::ResponseResult;`)
|
||||
- Tokio updated to v1.2.
|
||||
- `msg.text_owned()` -> `msg.map(ToOwned::to_owned)`
|
||||
|
||||
</details>
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue