mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Bump supported TBA version to 7.3
This commit is contained in:
parent
6345a3d06f
commit
f669d37fe0
7 changed files with 36 additions and 5 deletions
|
@ -12,6 +12,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Add `filter_mention_command` filter to `HandlerExt` trait ([issue #494](https://github.com/teloxide/teloxide/issues/494))
|
||||
- Add `filter_business_connection`, `filter_business_message`, `filter_edited_business_message`, and `filter_deleted_business_messages` filters to update filters ([PR 1146](https://github.com/teloxide/teloxide/pull/1146))
|
||||
|
||||
- Support for TBA 7.3 ([#1159](pr1159))
|
||||
- Add `filter_chat_background_set` to `MessageFilterExt` trait
|
||||
|
||||
[pr1159]: https://github.com/teloxide/teloxide/pull/1159
|
||||
|
||||
### Changed
|
||||
|
||||
- Environment bumps: ([#1147][pr1147])
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<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%20coverage-Up%20to%207.2%20(inclusively)-green.svg">
|
||||
<img src="https://img.shields.io/badge/API%20coverage-Up%20to%207.3%20(inclusively)-green.svg">
|
||||
</a>
|
||||
<a href="https://t.me/teloxide">
|
||||
<img src="https://img.shields.io/badge/support-t.me%2Fteloxide-blueviolet">
|
||||
|
|
|
@ -44,6 +44,19 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- `ApiError::BotKickedFromChannel` ([#1157][pr1157])
|
||||
|
||||
- Support for TBA 7.3 ([#1159](pr1159))
|
||||
- Add `via_join_request` field to `ChatMemberUpdated` struct
|
||||
- Add `LivePeriod` enum and replace `u32` with it in all `live_period` fields
|
||||
- Add `live_period` parameter to `editMessageLiveLocation` method
|
||||
- Add `question_entities` field to `Poll` struct
|
||||
- Add `text_entities` filed to `PollOption` struct
|
||||
- Add `question_parse_mode` and `question_entities` parameters to `sendPoll` method
|
||||
- Add `InputPollOption` struct
|
||||
- Add `BackgroundFill` and `BackgroundType` enum
|
||||
- Add `ChatBackground` variant to `MessageKind` enum
|
||||
- Add `max_reaction_count` field to `ChatFullInfo` struct
|
||||
- Document that .MP3 and .M4A files can be used as voice messages
|
||||
|
||||
[pr1157]: https://github.com/teloxide/teloxide/pull/1157
|
||||
|
||||
### Changed
|
||||
|
@ -65,6 +78,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Wrap `Public` variant of `ChatKind` in `Box`
|
||||
- Replaced `user_ids` with `users` in `UsersShared` struct
|
||||
|
||||
- Support for TBA 7.3 ([#1159](pr1159))
|
||||
- Change `options` parameter type in method `sendPoll` to `InputPollOption`
|
||||
- Move most of the fields and methods from `Chat` to `ChatFullInfo` struct
|
||||
- Return `ChatFullInfo` struct from `getChat` method instead of `Chat`
|
||||
|
||||
[pr1131]: https://github.com/teloxide/teloxide/pull/1131
|
||||
[pr1134]: https://github.com/teloxide/teloxide/pull/1134
|
||||
[pr1146]: https://github.com/teloxide/teloxide/pull/1146
|
||||
|
@ -75,6 +93,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
|
||||
- `Currency` enum removed, its usages replaced with `String`.
|
||||
|
||||
- Support for TBA 7.3 ([#1159](pr1159))
|
||||
- Remove some degraded functionality (because of `Chat` to `ChatFullInfo` migration):
|
||||
- `fn mentioned_users` from `chat_member_updated.rs` and `chat_join_request.rs` lost ability to track chat users
|
||||
- `fn mentioned_users` from `Message` lost ability to track chat users (e.g. from pins) and chat users from forward
|
||||
- `fn mentioned_users_rec` was removed from `Chat` and not included in `ChatFullInfo` struct
|
||||
|
||||
[pr1159]: https://github.com/teloxide/teloxide/pull/1159
|
||||
|
||||
## 0.10.1 - 2024-08-17
|
||||
|
||||
### Fixed
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
<img src="https://img.shields.io/badge/license-MIT-blue.svg">
|
||||
</a>
|
||||
<a href="https://core.telegram.org/bots/api">
|
||||
<img src="https://img.shields.io/badge/API%20coverage-Up%20to%207.2%20(inclusively)-green.svg">
|
||||
<img src="https://img.shields.io/badge/API%20coverage-Up%20to%207.3%20(inclusively)-green.svg">
|
||||
</a>
|
||||
<a href="https://crates.io/crates/teloxide_core">
|
||||
<img src="https://img.shields.io/crates/v/teloxide_core.svg">
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
//! [github]: https://github.com/WaffleLapkin/tg-methods-schema
|
||||
|
||||
Schema(
|
||||
api_version: ApiVersion(ver: "7.2", date: "March 31, 2024"),
|
||||
api_version: ApiVersion(ver: "7.3", date: "May 6, 2024"),
|
||||
methods: [
|
||||
Method(
|
||||
names: ("getUpdates", "GetUpdates", "get_updates"),
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
//! Core part of the [`teloxide`] library.
|
||||
//!
|
||||
//! This library provides tools for making requests to the [Telegram Bot API]
|
||||
//! (Currently, version `7.2` is supported) with ease. The library is fully
|
||||
//! (Currently, version `7.3` is supported) with ease. The library is fully
|
||||
//! asynchronous and built using [`tokio`].
|
||||
//!
|
||||
//!```toml
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
//! A full-featured framework that empowers you to easily build [Telegram bots]
|
||||
//! using [Rust]. It handles all the difficult stuff so you can focus only on
|
||||
//! your business logic. Currently, version `7.2` of [Telegram Bot API] is
|
||||
//! your business logic. Currently, version `7.3` of [Telegram Bot API] is
|
||||
//! supported.
|
||||
//!
|
||||
//! For a high-level overview, see [our GitHub repository](https://github.com/teloxide/teloxide).
|
||||
|
|
Loading…
Reference in a new issue