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