ferrisgram 0.2.1

An elegent rust client for the Telegram Bot API.
Documentation
// WARNING: THIS CODE IS AUTOGENERATED.
// DO NOT EDIT!!!

#![allow(clippy::too_many_arguments, clippy::new_without_default)]
use crate::types::Poll;
use crate::types::PollOption;

impl Poll {
    /// This function creates an empty struct for the object Poll.
    pub fn new(
        id: String,
        question: String,
        options: Vec<PollOption>,
        total_voter_count: i64,
        is_closed: bool,
        is_anonymous: bool,
        r#type: String,
        allows_multiple_answers: bool,
    ) -> Self {
        Self {
            id,
            question,
            question_entities: None,
            options,
            total_voter_count,
            is_closed,
            is_anonymous,
            r#type,
            allows_multiple_answers,
            correct_option_id: None,
            explanation: None,
            explanation_entities: None,
            open_period: None,
            close_date: None,
        }
    }
}