teloxide-core 0.9.0

Core part of the `teloxide` library - telegram bot API client
Documentation
use crate::types::User;
use serde::{Deserialize, Serialize};

#[derive(Clone, Debug, Eq, Hash, PartialEq, Serialize, Deserialize)]
pub struct PollAnswer {
    /// Unique poll identifier.
    pub poll_id: String,

    /// The user, who changed the answer to the poll.
    pub user: User,

    /// 0-based identifiers of answer options, chosen by the user.
    ///
    /// May be empty if the user retracted their vote.
    pub option_ids: Vec<i32>,
}