File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
main/java/com/pengrad/telegrambot/request
test/java/com/pengrad/telegrambot Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11package com .pengrad .telegrambot .request ;
22
33import com .pengrad .telegrambot .model .Poll ;
4+ import com .pengrad .telegrambot .model .request .ParseMode ;
45
56/**
67 * Stas Parshin
@@ -37,4 +38,12 @@ public SendPoll allowsMultipleAnswers(boolean allowsMultipleAnswers) {
3738 public SendPoll isClosed (boolean isClosed ) {
3839 return add ("is_closed" , isClosed );
3940 }
41+
42+ public SendPoll explanation (String explanation ) {
43+ return add ("explanation" , explanation );
44+ }
45+
46+ public SendPoll explanationParseMode (ParseMode parseMode ) {
47+ return add ("explanation_parse_mode" , parseMode );
48+ }
4049}
Original file line number Diff line number Diff line change @@ -1673,6 +1673,8 @@ public void sendPoll() {
16731673 .allowsMultipleAnswers (false )
16741674 .correctOptionId (1 )
16751675 .isClosed (true )
1676+ .explanation ("Some __explanation__ of poll" )
1677+ .explanationParseMode (ParseMode .MarkdownV2 )
16761678 );
16771679 Poll poll = sendResponse .message ().poll ();
16781680 assertFalse (poll .id ().isEmpty ());
You can’t perform that action at this time.
0 commit comments