mirror of
https://github.com/teloxide/teloxide.git
synced 2025-01-11 04:21:12 +01:00
Document SendPoll::{explanation, explanation_parse_mode}
This commit is contained in:
parent
92f45e9167
commit
a3a86ccaf6
2 changed files with 8 additions and 1 deletions
|
@ -135,6 +135,9 @@ impl SendPoll {
|
||||||
self
|
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
|
pub fn explanation<T>(mut self, val: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<String>,
|
T: Into<String>,
|
||||||
|
@ -143,6 +146,10 @@ impl SendPoll {
|
||||||
self
|
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
|
pub fn explanation_parse_mode<T>(mut self, val: T) -> Self
|
||||||
where
|
where
|
||||||
T: Into<String>,
|
T: Into<String>,
|
||||||
|
|
|
@ -75,7 +75,7 @@ impl Poll {
|
||||||
allows_multiple_answers,
|
allows_multiple_answers,
|
||||||
correct_option_id: None,
|
correct_option_id: None,
|
||||||
explanation: None,
|
explanation: None,
|
||||||
explanation_entities:None,
|
explanation_entities: None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue