Merge pull request #736 from teloxide/v0.11.0

Release v0.11.0
This commit is contained in:
Hirrolot 2022-10-07 17:27:43 +06:00 committed by GitHub
commit e5ee52d4db
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 11 additions and 9 deletions

View file

@ -6,10 +6,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## unreleased ## unreleased
## 0.11.0 - 2022-10-07
### Changed ### Changed
<!-- TODO: use a version once teloxide-macros is released --> - Updated `teloxide-macros` to v0.7.0; see its [changelog](https://github.com/teloxide/teloxide-macros/blob/master/CHANGELOG.md#070---2022-10-06) for more
- Updated `teloxide-macros` see its [changelog](https://github.com/teloxide/teloxide-macros/blob/master/CHANGELOG.md#unreleased) for more - Updated `teloxide-core` to v0.8.0; see its [changelog](https://github.com/teloxide/teloxide-core/blob/master/CHANGELOG.md#080---2022-10-03) for more
- `UpdateListener` now has an associated type `Err` instead of a generic - `UpdateListener` now has an associated type `Err` instead of a generic
- `AsUpdateStream` now has an associated type `StreamErr` instead of a generic - `AsUpdateStream` now has an associated type `StreamErr` instead of a generic
- Rename `dispatching::stop_token::{AsyncStopToken, AsyncStopFlag}` => `stop::{StopToken, StopFlag}` - Rename `dispatching::stop_token::{AsyncStopToken, AsyncStopFlag}` => `stop::{StopToken, StopFlag}`

View file

@ -1,6 +1,6 @@
[package] [package]
name = "teloxide" name = "teloxide"
version = "0.10.1" version = "0.11.0"
edition = "2021" edition = "2021"
description = "An elegant Telegram bots framework for Rust" description = "An elegant Telegram bots framework for Rust"
repository = "https://github.com/teloxide/teloxide" repository = "https://github.com/teloxide/teloxide"

View file

@ -1,4 +1,4 @@
> [v0.9 -> v0.10 migration guide >>](MIGRATION_GUIDE.md#09---010) > [v0.10 -> v0.11 migration guide >>](MIGRATION_GUIDE.md#010---011)
<div align="center"> <div align="center">
<img src="./ICON.png" width="250"/> <img src="./ICON.png" width="250"/>
@ -13,7 +13,7 @@
<img src="https://img.shields.io/crates/v/teloxide.svg"> <img src="https://img.shields.io/crates/v/teloxide.svg">
</a> </a>
<a href="https://core.telegram.org/bots/api"> <a href="https://core.telegram.org/bots/api">
<img src="https://img.shields.io/badge/API%20coverage-Up%20to%206.1%20(inclusively)-green.svg"> <img src="https://img.shields.io/badge/API%20coverage-Up%20to%206.2%20(inclusively)-green.svg">
</a> </a>
<a href="https://t.me/teloxide"> <a href="https://t.me/teloxide">
<img src="https://img.shields.io/badge/support-t.me%2Fteloxide-blueviolet"> <img src="https://img.shields.io/badge/support-t.me%2Fteloxide-blueviolet">
@ -56,9 +56,9 @@ $ set TELOXIDE_TOKEN=<Your token here>
# Windows PowerShell # Windows PowerShell
$ $env:TELOXIDE_TOKEN=<Your token here> $ $env:TELOXIDE_TOKEN=<Your token here>
``` ```
4. Make sure that your Rust compiler is up to date (`teloxide` currently requires rustc at least version 1.58):
4. Make sure that your Rust compiler is up to date (`teloxide` currently requires rustc at least version 1.64):
```bash ```bash
# If you're using stable # If you're using stable
$ rustup update stable $ rustup update stable
@ -72,7 +72,7 @@ $ rustup override set nightly
5. Run `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`: 5. Run `cargo new my_bot`, enter the directory and put these lines into your `Cargo.toml`:
```toml ```toml
[dependencies] [dependencies]
teloxide = { version = "0.10", features = ["macros", "auto-send"] } teloxide = { version = "0.11", features = ["macros", "auto-send"] }
log = "0.4" log = "0.4"
pretty_env_logger = "0.4" pretty_env_logger = "0.4"
tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] } tokio = { version = "1.8", features = ["rt-multi-thread", "macros"] }

View file

@ -138,7 +138,7 @@
//! } //! }
//! ``` //! ```
//! //!
//! Each parameter is supplied as a dependency by teloxide. In particular: //! Each parameter is supplied as a dependency by `teloxide`. In particular:
//! - `bot: Bot` comes from the dispatcher (see below) //! - `bot: Bot` comes from the dispatcher (see below)
//! - `msg: Message` comes from [`Update::filter_message`] //! - `msg: Message` comes from [`Update::filter_message`]
//! - `q: CallbackQuery` comes from [`Update::filter_callback_query`] //! - `q: CallbackQuery` comes from [`Update::filter_callback_query`]