Document SendPoll::{explanation, explanation_parse_mode}

This commit is contained in:
Temirkhan Myrzamadi 2020-07-30 11:03:41 +06:00
parent 92f45e9167
commit a3a86ccaf6
2 changed files with 8 additions and 1 deletions

View file

@ -135,6 +135,9 @@ impl SendPoll {
self
}
/// 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 with at most 2 line
/// feeds after entities parsing.
pub fn explanation<T>(mut self, val: T) -> Self
where
T: Into<String>,
@ -143,6 +146,10 @@ impl SendPoll {
self
}
/// Mode for parsing entities in the explanation. See [formatting options]
/// for more details.
///
/// [formatting options]: https://core.telegram.org/bots/api#formatting-options
pub fn explanation_parse_mode<T>(mut self, val: T) -> Self
where
T: Into<String>,

View file

@ -75,7 +75,7 @@ impl Poll {
allows_multiple_answers,
correct_option_id: None,
explanation: None,
explanation_entities:None,
explanation_entities: None,
}
}