From 6d4ad2932cb66a89d5387d925a9914be4638e58e Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 7 Sep 2021 15:32:00 +0500 Subject: [PATCH 1/4] Fix type of `Poll::correct_option_id` field: `i32` => `u8` --- src/types/poll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/poll.rs b/src/types/poll.rs index caf6af5e..ac244a0b 100644 --- a/src/types/poll.rs +++ b/src/types/poll.rs @@ -37,7 +37,7 @@ pub struct Poll { /// 0-based identifier of the correct answer option. Available only for /// polls in the quiz mode, which are closed, or was sent (not /// forwarded) by the bot or to the private chat with the bot. - pub correct_option_id: Option, + pub correct_option_id: Option, /// Text that is shown when a user chooses an incorrect answer or taps on /// the lamp icon in a quiz-style poll, 0-200 characters. From 602c573b92a3b13db293a5396d634f7e7c869a9d Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 7 Sep 2021 15:35:07 +0500 Subject: [PATCH 2/4] Fix type of `Poll::open_period` field: `i32` => `u16` --- src/types/poll.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/poll.rs b/src/types/poll.rs index ac244a0b..a0946ca5 100644 --- a/src/types/poll.rs +++ b/src/types/poll.rs @@ -48,7 +48,7 @@ pub struct Poll { pub explanation_entities: Option>, /// Amount of time in seconds the poll will be active after creation. - pub open_period: Option, + pub open_period: Option, /// Point in time when the poll will be automatically closed. #[serde(with = "crate::types::serde_opt_date_from_unix_timestamp")] From c461eac259d63a0d803ae2a4010af097afd4df10 Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 7 Sep 2021 19:24:13 +0500 Subject: [PATCH 3/4] Update changelog --- CHANGELOG.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index aaf3afb7..6ce3b9b3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,6 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Fixed - Type of `BanChatMember::until_date`: `u64` -> `chrono::DateTime` ([#116][pr116]) +- Type of `Poll::correct_option_id`: `i32` -> `u8` ([#119][pr119]) +- Type of `Poll::open_period`: `i32` -> `u16` ([#119][pr119]) ## 0.3.3 - 2021-08-03 From 9261d8cfd2dc915ed01b5d8af3ec3310d8cba66a Mon Sep 17 00:00:00 2001 From: Waffle Lapkin Date: Tue, 7 Sep 2021 17:47:10 +0300 Subject: [PATCH 4/4] changelog: link pr119 --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ce3b9b3..d146e494 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Type of `Poll::correct_option_id`: `i32` -> `u8` ([#119][pr119]) - Type of `Poll::open_period`: `i32` -> `u16` ([#119][pr119]) +[pr119]: https://github.com/teloxide/teloxide-core/pull/119 ## 0.3.3 - 2021-08-03 ### Fixed