From a4e5995b6972332dd681be092dc9e5ae60c4daf0 Mon Sep 17 00:00:00 2001 From: Waffle Maybe Date: Fri, 24 Feb 2023 16:21:49 +0400 Subject: [PATCH] Change changelog according to review comments Co-authored-by: Sima Kinsart --- crates/teloxide-core/CHANGELOG.md | 14 +++++++++++++- crates/teloxide-core/src/types/seconds.rs | 2 +- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/crates/teloxide-core/CHANGELOG.md b/crates/teloxide-core/CHANGELOG.md index 7690b087..19686bd2 100644 --- a/crates/teloxide-core/CHANGELOG.md +++ b/crates/teloxide-core/CHANGELOG.md @@ -14,6 +14,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - `Message::video_chat_participants_invited` ([#850][pr850]) - `Update::from`, a replacement for `Update::user` ([#850][pr850]) - `Seconds` type, which represents a duration is seconds ([#859][pr859]) +- `VideoChatEnded::duration` field that was previously missed ([#859][pr859]) [pr851]: https://github.com/teloxide/teloxide/pull/851 @@ -21,7 +22,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Types of `Option` fields of `KeyboardMarkup`, `KeyboardRemove` and `ForceReply` to `bool` ([#853][pr853]) - Type of `KeyboardMarkup::input_field_placeholder`: `Option` => `String` ([#853][pr853]) -- Some fields now use `Seconds` type instead of `u32` or `Duration` ([#859][pr859]) +- The following fields now use `Seconds` type instead of `u32`, `u16` or `Duration` ([#859][pr859]) + - `Animation::duration` + - `Audio::duration` + - `Chat::message_auto_delete_time` + - `Chat::slow_mode_delay` + - `InlineQueryResultLocation::live_period` + - `Location::live_period` + - `MessageAutoDeleteTimerChanged::message_auto_delete_time` + - `Poll::open_period` + - `Video::duration` + - `VideoNote::duration` + - `Voice::duration` - `RequestError::MigrateToChatId` single fields type to `ChatId` ([#859][pr859]) - `RequestError::RetryAfter` single fields type to `Seconds` ([#859][pr859]) diff --git a/crates/teloxide-core/src/types/seconds.rs b/crates/teloxide-core/src/types/seconds.rs index 7de00be3..ab05fbb1 100644 --- a/crates/teloxide-core/src/types/seconds.rs +++ b/crates/teloxide-core/src/types/seconds.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; -/// A wrapper around `u32` which represents duration is seconds. +/// A wrapper around `u32` which represents duration in seconds. #[derive(Clone, Copy)] #[derive(PartialEq, Eq, PartialOrd, Ord, Hash)] #[derive(Debug, derive_more::Display)]