From 2d515312d2426d54280fa66edb3b17709fb7e8ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D1=8B=D1=80=D1=86=D0=B5=D0=B2=20=D0=92=D0=B0=D0=B4?= =?UTF-8?q?=D0=B8=D0=BC=20=D0=98=D0=B3=D0=BE=D1=80=D0=B5=D0=B2=D0=B8=D1=87?= Date: Fri, 5 Jan 2024 18:28:32 +0300 Subject: [PATCH] Update changelogs --- CHANGELOG.md | 33 +++++++++++++++++++++++++++++++ crates/teloxide-core/CHANGELOG.md | 21 +++++++++++++++----- 2 files changed, 49 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8fd4dcc9..15d0f5f1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,6 +10,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add `MessageToCopyNotFound` error to `teloxide::errors::ApiError` ([PR 917](https://github.com/teloxide/teloxide/pull/917)) - `Dispatcher::try_dispatch_with_listener` ([PR 913](https://github.com/teloxide/teloxide/pull/913)) +- Missing Message::filter_* functions ([PR 982](https://github.com/teloxide/teloxide/pull/982)): + - `filter_game` + - `filter_venue` + - `filter_video` + - `filter_video_note` + - `filter_voice` + - `filter_migration` + - `filter_migration_from` + - `filter_migration_to` + - `filter_new_chat_title` + - `filter_new_chat_photo` + - `filter_delete_chat_photo` + - `filter_group_chat_created` + - `filter_supergroup_chat_created` + - `filter_channel_chat_created` + - `filter_message_auto_delete_timer_changed` + - `filter_invoice` + - `filter_successful_payment` + - `filter_connected_website` + - `filter_write_access_allowed` + - `filter_passport_data` + - `filter_proximity_alert_triggered` + - `filter_forum_topic_created` + - `filter_forum_topic_edited` + - `filter_forum_topic_closed` + - `filter_forum_topic_reopened` + - `filter_general_forum_topic_hidden` + - `filter_general_forum_topic_unhidden` + - `filter_video_chat_scheduled` + - `filter_video_chat_started` + - `filter_video_chat_ended` + - `filter_video_chat_participants_invited` + - `filter_web_app_data` ### Fixed diff --git a/crates/teloxide-core/CHANGELOG.md b/crates/teloxide-core/CHANGELOG.md index e9fb7958..a7984d35 100644 --- a/crates/teloxide-core/CHANGELOG.md +++ b/crates/teloxide-core/CHANGELOG.md @@ -19,8 +19,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `ChatId::as_user` ([#905][pr905]) - Implement `PartialEq for UserId` and `PartialEq for ChatId` ([#905][pr905]) - `ChatId::{MIN, MAX}` ([#905][pr905]) -- Add missing Message::filter_* functions: `filter_game`, `filter_venue`, `filter_video`, `filter_video_note`, `filter_voice`, `filter_migration`, `filter_migration_from`, `filter_migration_to`, `filter_new_chat_title`, `filter_new_chat_photo`, `filter_delete_chat_photo`, `filter_group_chat_created`, `filter_supergroup_chat_created`, `filter_channel_chat_created`, `filter_message_auto_delete_timer_changed`, `filter_invoice`, `filter_successful_payment`, `filter_connected_website`, `filter_write_access_allowed`, `filter_passport_data`, `filter_proximity_alert_triggered`, `filter_forum_topic_created`, `filter_forum_topic_edited`, `filter_forum_topic_closed`, `filter_forum_topic_reopened`, `filter_general_forum_topic_hidden`, `filter_general_forum_topic_unhidden`, `filter_video_chat_scheduled`, `filter_video_chat_started`, `filter_video_chat_ended`, `filter_video_chat_participants_invited`, `filter_web_app_data` and getters: `message_auto_delete_timer_changed`, `write_access_allowed`, `forum_topic_created`, `forum_topic_edited`, `forum_topic_closed`, `forum_topic_reopened`, `general_forum_topic_hidden`, `general_forum_topic_unhidden`, `video_chat_scheduled`, `video_chat_started`, `video_chat_ended`, `web_app_data` ([#982][pr982]) -- Add `is_delete_chat_photo`, `is_group_chat_created`, `is_super_group_chat_created`, `is_channel_chat_created` to `Message` getters ([#982][pr982]) +- Missing `Message` getters ([#982][pr982]): + - `message_auto_delete_timer_changed` + - `write_access_allowed` + - `forum_topic_created` + - `forum_topic_edited` + - `forum_topic_closed` + - `forum_topic_reopened` + - `general_forum_topic_hidden` + - `general_forum_topic_unhidden` + - `video_chat_scheduled` + - `video_chat_started` + - `video_chat_ended` + - `web_app_data` +- `is_delete_chat_photo`, `is_group_chat_created`, `is_super_group_chat_created`, `is_channel_chat_created` functions to `Message` ([#982][pr982]) [pr851]: https://github.com/teloxide/teloxide/pull/851 [pr887]: https://github.com/teloxide/teloxide/pull/887 @@ -73,8 +85,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Add proper support for `edit_message_caption_inline`, `copy_message`, `answer_inline_query`, `answer_web_app_query`, `send_media_group`, `edit_message_media`, and `edit_message_media_inline` to `DefaultParseMode` adaptor ([#961][pr961]) - Note that now `DefaultParseMode` sets the default on `send`, instead of request creation - `DefaultParseMode` now also requires that the supported requests implement `Clone` (as a user you should not notice anything changing) -- Methods of the Message type: `delete_chat_photo`, `group_chat_created`, `super_group_chat_created`, `channel_chat_created`, `chat_migration`, `migrate_to_chat_id`, `migrate_from_chat_id` now return shared reference instead of owned value inside Option ([#982][pr982]) -- Methods `delete_chat_photo`, `group_chat_created`, `super_group_chat_created`, `channel_chat_created` now return appropriate structs not Option ([#982][pr982]) +- Methods of the Message type: `delete_chat_photo`, `group_chat_created`, `super_group_chat_created`, `channel_chat_created`, `chat_migration`, `migrate_to_chat_id`, `migrate_from_chat_id` now return shared reference instead of owned value inside `Option` ([#982][pr982]) +- Methods `delete_chat_photo`, `group_chat_created`, `super_group_chat_created`, `channel_chat_created` now return appropriate structs not `Option` ([#982][pr982]) [pr852]: https://github.com/teloxide/teloxide/pull/853 [pr859]: https://github.com/teloxide/teloxide/pull/859 @@ -83,7 +95,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [pr892]: https://github.com/teloxide/teloxide/pull/892 [pr950]: https://github.com/teloxide/teloxide/pull/950 [pr961]: https://github.com/teloxide/teloxide/pull/961 -[pr982]: https://github.com/teloxide/teloxide/pull/982 ### Deprecated