mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 06:25:10 +01:00
Update CHANGELOG.md
This commit is contained in:
parent
d42146fbc6
commit
5c88b0b724
2 changed files with 46 additions and 3 deletions
|
@ -49,6 +49,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Use [deadpool-redis](https://crates.io/crates/deadpool-redis) for Redis connection pooling ([PR 1081](https://github.com/teloxide/teloxide/pull/1081)).
|
||||
- Add `MessageExt::filter_story` method for the corresponding `MediaKind::Story` variant ([PR 1087](https://github.com/teloxide/teloxide/pull/1087)).
|
||||
- Add `update_listeners::webhooks::Options::path`, an option to make the webhook server listen on a different path, which can be useful behind a reverse proxy.
|
||||
- Add `filter_giveaway`, `filter_giveaway_completed`, `filter_giveaway_created` and `filter_giveaway_winners` filters to `MessageFilterExt` trait ([PR 1101](https://github.com/teloxide/teloxide/pull/1101))
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -69,6 +70,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- MSRV (Minimal Supported Rust Version) was bumped from `1.68.0` to `1.70.0` ([PR 996][https://github.com/teloxide/teloxide/pull/996])
|
||||
- `axum` was bumped to `0.7`, along with related libraries used for webhooks ([PR 1093][https://github.com/teloxide/teloxide/pull/1093])
|
||||
- `Polling`'s exponential backoff now results in 64 seconds maximum delay instead of 17 minutes ([PR 1113][https://github.com/teloxide/teloxide/pull/1113])
|
||||
- `filter_forward_from` was removed ([PR 1101](https://github.com/teloxide/teloxide/pull/1101))
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
|
@ -88,18 +88,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Support for TBA 6.9 ([#1095](pr1095))
|
||||
- Add `can_post_stories`, `can_edit_stories` and `can_delete_stories` fields to `ChatMemberKind::Administrator`, `ChatAdministratorRights` and `PromoteChatMember`
|
||||
- Add `from_request` and `from_attachment_menu` fields to `WriteAccessAllowed`
|
||||
- Support for TBA 7.0
|
||||
- Support for TBA 7.0 ([#1101](pr1101))
|
||||
- Reactions:
|
||||
- Add `ReactionType`, `MessageReactionUpdated` and `MessageReactionCountUpdated` structs
|
||||
- Add `MessageReaction` and `MessageReactionCount` variants to `UpdateKind` enum
|
||||
- Add `filter_message_reaction_updated` and `filter_message_reaction_count_updated` filters to `UpdateFilterExt` trait
|
||||
- Add `set_message_reaction` TBA method to `Requester` trait
|
||||
- Add `available_reactions` field to `Chat` struct
|
||||
- Replies 2.0
|
||||
- Add the fields `MessageCommon::{external_reply, quote}` of types `ExternalReplyInfo` and `TextQuote` respectively
|
||||
- Link Preview Customization
|
||||
- Remove `disable_web_page_preview` field from `send_message` and `send_message` TBA methods and `InputMessageContentText` struct
|
||||
- Add `LinkPreviewOptions` struct
|
||||
- Add `link_preview_options` field to `InputMessageContentText` and `Message` structs
|
||||
- Add `link_preview_options` field to `send_message` and `send_message` TBA methods
|
||||
- Multiple Message Actions
|
||||
- Add TBA methods `delete_messages`, `forward_messages` and `copy_messages` to `Requester` trait
|
||||
- Chat Boost
|
||||
- Add `ChatBoost`, `ChatBoostSource`, `ChatBoostUpdated`, `ChatBoostRemoved` and `UserChatBoosts` structs
|
||||
- Add `ChatBoost` and `RemovedChatBoost` variants to `UpdateKind` enum
|
||||
|
@ -108,8 +112,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Giveaway:
|
||||
- Add `Giveaway`, `GiveawayCreated`, `GiveawayWinners` and `GiveawayCompleted` structs
|
||||
- Add `Giveaway`, `GiveawayCreated`, `GiveawayWinners` and `GiveawayCompleted` variants to `MessageKind` enum
|
||||
- Add `giveaway`, `giveaway_created`, `giveaway_winners` and `giveaway_completed` getters to `Message` struct
|
||||
- Add `filter_giveaway`, `filter_giveaway_completed`, `filter_giveaway_created` and `filter_giveaway_winners` filters to `MessageFilterExt` trait
|
||||
- Add `giveaway`, `giveaway_created`, `giveaway_winners` and `giveaway_completed` getters to `Message`
|
||||
- Other Changes
|
||||
- Add fields `ChafFullInfo::{has_visible_history, accent_color_id, background_custom_emoji_id, profile_accent_color_id, profile_background_custom_emoji_id}`
|
||||
|
||||
[pr851]: https://github.com/teloxide/teloxide/pull/851
|
||||
[pr887]: https://github.com/teloxide/teloxide/pull/887
|
||||
|
@ -119,6 +124,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
[pr1086]: https://github.com/teloxide/teloxide/pull/1086
|
||||
[pr1087]: https://github.com/teloxide/teloxide/pull/1087
|
||||
[pr1095]: https://github.com/teloxide/teloxide/pull/1095
|
||||
[pr1101]: https://github.com/teloxide/teloxide/pull/1101
|
||||
|
||||
### Fixed
|
||||
|
||||
|
@ -130,6 +136,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Deserialization of empty (content-less) messages that can sometimes appear as a part of callback query ([#850][pr850], issue [#873][issue873])
|
||||
- Type of `chat_id` in `send_game`: `u32` => `ChatId` ([#1066][pr1066])
|
||||
- `Requester::Err` was bounded to the `AsResponseParameters`. In case of `RetryAfter(..)` errors the polling is paused for the specified delay instead of falling into the backoff strategy ([#1113][pr1113])
|
||||
- `SendPoll` documentation ([#1101][pr1101], issue [#1058][issue1058])
|
||||
- `from`, `sender_chat` and `is_topic_message` are moved into the `Message` from the `MessageCommon` ([#1101][pr1101], issue [#945][issue945]). Initially [#946][pr946]
|
||||
- Add support for `blockquote` entity in received messages + in `MarkdownV2` and `HTML` ([#1101][pr1101], issue [#1062][issue1062])
|
||||
|
||||
[pr839]: https://github.com/teloxide/teloxide/pull/839
|
||||
[pr879]: https://github.com/teloxide/teloxide/pull/879
|
||||
|
@ -191,6 +200,36 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
- Method `set_sticker_set_thumb` and it's parameter `thumb` have been renamed to `set_sticker_set_thumbnail` and `thumbnail` respectively
|
||||
- Fields `{InlineQueryResultArticle, InlineQueryResultContact, InlineQueryResultDocument, InlineQueryResultLocation, InlineQueryResultVenue}::{thumb_url, thumb_width, thumb_height}` have been renamed to `{thumbnail_url, thumbnail_width, thumbnail_height}` respectively
|
||||
- Field `{InlineQueryResultPhoto, InlineQueryResultVideo, InlineQueryResultGif, InlineQueryResultMpeg4Gif}::thumb_url` has been renamed to `thumbnail_url`
|
||||
- Support for TBA 7.0 ([#1101](pr1101))
|
||||
- Replies 2.0
|
||||
- Parameter `reply_parameters` of type `ReplyParameters` replaces parameters `reply_to_message_id` and `allow_sending_without_reply` in the methods:
|
||||
- `copy_message`
|
||||
- `send_message`
|
||||
- `send_photo`
|
||||
- `send_video`
|
||||
- `send_animation`
|
||||
- `send_audio`
|
||||
- `send_document`
|
||||
- `send_sticker`
|
||||
- `send_video_note`
|
||||
- `send_voice`
|
||||
- `send_location`
|
||||
- `send_venue`
|
||||
- `send_contact`
|
||||
- `send_poll`
|
||||
- `send_dice`
|
||||
- `send_invoice`
|
||||
- `send_game`
|
||||
- `send_media_group`
|
||||
- Request for multiple users
|
||||
- Struct `KeyboardButtonRequestUser` was renamed to `KeyboardButtonRequestUsers` + added field `max_quantity` to it
|
||||
- Field `KeyboardButton::request_user` was renamed to `request_users`
|
||||
- `MessageUserShared` was renamed to `MessageUsersShared`
|
||||
- Other Changes
|
||||
- `Message::pinned_message` and `CallbackQuery::message` now have `MaybeInaccessibleMessage` type
|
||||
- Field `emoji_status_custom_emoji_id` is allowed in non-private chats (moved to the `ChatFullInfo`)
|
||||
- Struct `Forward` was replaced by `MessageOrigin` in `MessageCommon`
|
||||
|
||||
|
||||
[pr852]: https://github.com/teloxide/teloxide/pull/853
|
||||
[pr859]: https://github.com/teloxide/teloxide/pull/859
|
||||
|
@ -204,8 +243,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||
### Deprecated
|
||||
|
||||
- `Update::user`, use `Update::from` instead ([#850][pr850])
|
||||
- `Message::from()` and `Message::sender_chat()` in favour of fields with the same name([initially #946][pr946][#1101][pr1101])
|
||||
|
||||
[pr850]: https://github.com/teloxide/teloxide/pull/850
|
||||
[pr946]: https://github.com/teloxide/teloxide/pull/946
|
||||
|
||||
### Removed
|
||||
|
||||
|
|
Loading…
Reference in a new issue