Struct telbot_types::message::Poll [−][src]
pub struct Poll {
pub id: String,
pub question: String,
pub options: Vec<PollOption>,
pub total_voter_count: u32,
pub is_closed: bool,
pub is_anonymous: bool,
pub kind: PollKind,
pub allows_multiple_answers: bool,
pub open_period: Option<u32>,
pub close_date: Option<u64>,
}Expand description
This object contains information about a poll.
Fields
id: StringUnique poll identifier
question: StringPoll question, 1-300 characters
options: Vec<PollOption>List of poll options
total_voter_count: u32Total number of users that voted in the poll
is_closed: boolTrue, if the poll is closed
is_anonymous: boolTrue, if the poll is anonymous
kind: PollKindPoll type
allows_multiple_answers: boolTrue, if the poll allows multiple answers
open_period: Option<u32>Amount of time in seconds the poll will be active after creation
close_date: Option<u64>Point in time (Unix timestamp) when the poll will be automatically closed
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more