Enum telbot_types::message::PollKind[][src]

pub enum PollKind {
    Regular,
    Quiz {
        correct_option_id: Option<usize>,
        explanation: Option<String>,
        explanation_entities: Option<Vec<MessageEntity>>,
    },
}
Expand description

Poll type

Variants

Regular
Quiz

Fields of Quiz

correct_option_id: Option<usize>

0-based identifier of the correct answer option. Available only for polls in the quiz mode, which are closed, or was sent (not forwarded) by the bot or to the private chat with the bot.

explanation: Option<String>

Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll, 0-200 characters

explanation_entities: Option<Vec<MessageEntity>>

Special entities like usernames, URLs, bot commands, etc. that appear in the explanation

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.