From f669d37fe0c3bf9d342fc41af700cbfd2da68e79 Mon Sep 17 00:00:00 2001 From: Andrey Brusnik Date: Thu, 29 Aug 2024 21:49:28 +0400 Subject: [PATCH] Bump supported TBA version to 7.3 --- CHANGELOG.md | 5 +++++ README.md | 2 +- crates/teloxide-core/CHANGELOG.md | 26 ++++++++++++++++++++++++++ crates/teloxide-core/README.md | 2 +- crates/teloxide-core/schema.ron | 2 +- crates/teloxide-core/src/lib.rs | 2 +- crates/teloxide/src/lib.rs | 2 +- 7 files changed, 36 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac09cb91..44f8ee5b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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]) diff --git a/README.md b/README.md index 35b8bc87..8871c6e0 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ - + diff --git a/crates/teloxide-core/CHANGELOG.md b/crates/teloxide-core/CHANGELOG.md index 9a856377..c8c95144 100644 --- a/crates/teloxide-core/CHANGELOG.md +++ b/crates/teloxide-core/CHANGELOG.md @@ -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 diff --git a/crates/teloxide-core/README.md b/crates/teloxide-core/README.md index 201aff8e..65e3b256 100644 --- a/crates/teloxide-core/README.md +++ b/crates/teloxide-core/README.md @@ -12,7 +12,7 @@ - + diff --git a/crates/teloxide-core/schema.ron b/crates/teloxide-core/schema.ron index f7f6812d..1b63ad98 100644 --- a/crates/teloxide-core/schema.ron +++ b/crates/teloxide-core/schema.ron @@ -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"), diff --git a/crates/teloxide-core/src/lib.rs b/crates/teloxide-core/src/lib.rs index e3eab009..e0a5fe7f 100644 --- a/crates/teloxide-core/src/lib.rs +++ b/crates/teloxide-core/src/lib.rs @@ -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 diff --git a/crates/teloxide/src/lib.rs b/crates/teloxide/src/lib.rs index bcb901f1..295e7770 100644 --- a/crates/teloxide/src/lib.rs +++ b/crates/teloxide/src/lib.rs @@ -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).