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: String

Unique poll identifier

question: String

Poll question, 1-300 characters

options: Vec<PollOption>

List of poll options

total_voter_count: u32

Total number of users that voted in the poll

is_closed: bool

True, if the poll is closed

is_anonymous: bool

True, if the poll is anonymous

kind: PollKind

Poll type

allows_multiple_answers: bool

True, 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

Deserialize this value from the given Serde deserializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.