Fix type of Poll::correct_option_id field: i32 => u8

This commit is contained in:
Andrew 2021-09-07 15:32:00 +05:00 committed by GitHub
parent d2b08afc8e
commit 6d4ad2932c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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<i32>,
pub correct_option_id: Option<u8>,
/// 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.