mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-31 16:40:37 +01:00
commit
58d87437ba
3 changed files with 7 additions and 18 deletions
|
@ -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.
|
||||
|
|
|
@ -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", "asynchronous"]
|
||||
license = "MIT"
|
||||
exclude = ["media"]
|
||||
authors = [
|
||||
"Temirkhan Myrzamadi <hirrolot@gmail.com>",
|
||||
"Hirrolot <hirrolot@gmail.com>",
|
||||
"Waffle Lapkin <waffle.lapkin@gmail.com>",
|
||||
"p0lunin <dmytro.polunin@gmail.com>",
|
||||
"Mishko torop'izhko",
|
||||
|
|
18
README.md
18
README.md
|
@ -1,18 +1,4 @@
|
|||
<details>
|
||||
<summary>FYI: Updating from v0.3.4 to v0.4.0</summary>
|
||||
|
||||
- `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<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.
|
||||
|
||||
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
|
||||
|
||||
</details>
|
||||
[_v0.4.0 => v0.5.0 migration guide >>_](MIGRATION_GUIDE.md#04---05)
|
||||
|
||||
<div align="center">
|
||||
<img src="ICON.png" width="250"/>
|
||||
|
@ -30,7 +16,7 @@ Note: this list is non-exhaustive; for the full list of changes, see the [teloxi
|
|||
<img src="https://img.shields.io/crates/v/teloxide.svg">
|
||||
</a>
|
||||
<a href="https://core.telegram.org/bots/api">
|
||||
<img src="https://img.shields.io/badge/API coverage-Up to 5.1 (inclusively)-green.svg">
|
||||
<img src="https://img.shields.io/badge/API coverage-Up to 5.3 (inclusively)-green.svg">
|
||||
</a>
|
||||
<a href="https://t.me/teloxide">
|
||||
<img src="https://img.shields.io/badge/official%20chat-t.me%2Fteloxide-blueviolet">
|
||||
|
|
Loading…
Reference in a new issue