From a3a86ccaf6c66fd4ad5482cd2526093998b101e1 Mon Sep 17 00:00:00 2001 From: Temirkhan Myrzamadi Date: Thu, 30 Jul 2020 11:03:41 +0600 Subject: [PATCH] Document SendPoll::{explanation, explanation_parse_mode} --- src/requests/all/send_poll.rs | 7 +++++++ src/types/poll.rs | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/requests/all/send_poll.rs b/src/requests/all/send_poll.rs index 3040bec0..e2bd3c6d 100644 --- a/src/requests/all/send_poll.rs +++ b/src/requests/all/send_poll.rs @@ -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(mut self, val: T) -> Self where T: Into, @@ -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(mut self, val: T) -> Self where T: Into, diff --git a/src/types/poll.rs b/src/types/poll.rs index a6e3b842..924ca09e 100644 --- a/src/types/poll.rs +++ b/src/types/poll.rs @@ -75,7 +75,7 @@ impl Poll { allows_multiple_answers, correct_option_id: None, explanation: None, - explanation_entities:None, + explanation_entities: None, } }