actix-telegram 0.0.5

telegram bot api lib based on actix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::types::*;

/// This object contains information about a poll.
#[derive(Debug, Deserialize, Clone, Getters)]
#[get(vis = "pub")]
pub struct Poll {
    /// Unique poll identifier
    pub(crate) id: String,
    /// Poll question, 1-255 characters
    pub(crate) question: String,
    /// List of poll options
    pub(crate) options: Vec<PollOption>,
    /// True, if the poll is closed
    pub(crate) is_closed: bool,
}