From 6d4ad2932cb66a89d5387d925a9914be4638e58e Mon Sep 17 00:00:00 2001 From: Andrew Date: Tue, 7 Sep 2021 15:32:00 +0500 Subject: [PATCH] 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.