You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param allows_multiple_answers: True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
5176
5179
:type allows_multiple_answers: :obj:`bool`
5177
5180
5178
-
:param correct_option_id: 0-based identifier of the correct answer option. Available only for polls in quiz mode,
5179
-
defaults to None
5181
+
:param correct_option_id: 0-based identifier of the correct answer option. Available only for polls in quiz mode, defaults to None
5180
5182
:type correct_option_id: :obj:`int`
5181
5183
5182
-
:param explanation: Text that is shown when a user chooses an incorrect answer or taps on the lamp icon in a quiz-style poll,
5183
-
0-200 characters with at most 2 line feeds after entities parsing
5184
+
:param explanation: 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
5184
5185
:type explanation: :obj:`str`
5185
5186
5186
5187
:param explanation_parse_mode: Mode for parsing entities in the explanation. See formatting options for more details.
@@ -5204,15 +5205,13 @@ def send_poll(
5204
5205
:param allow_sending_without_reply: deprecated. Pass True, if the message should be sent even if the specified replied-to message is not found
5205
5206
:type allow_sending_without_reply: :obj:`bool`
5206
5207
5207
-
:param reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard,
5208
-
instructions to remove reply keyboard or to force a reply from the user.
5208
+
:param reply_markup: Additional interface options. A JSON-serialized object for an inline keyboard, custom reply keyboard, instructions to remove reply keyboard or to force a reply from the user.
:param timeout: Timeout in seconds for waiting for a response from the user.
5212
5212
:type timeout: :obj:`int`
5213
5213
5214
-
:param explanation_entities: A JSON-serialized list of special entities that appear in the explanation,
5215
-
which can be specified instead of parse_mode
5214
+
:param explanation_entities: A JSON-serialized list of special entities that appear in the explanation, which can be specified instead of parse_mode
5216
5215
:type explanation_entities: :obj:`list` of :obj:`MessageEntity`
5217
5216
5218
5217
:param protect_content: Protects the contents of the sent message from forwarding and saving
@@ -5227,6 +5226,12 @@ def send_poll(
5227
5226
:param business_connection_id: Identifier of the business connection to use for the poll
5228
5227
:type business_connection_id: :obj:`str`
5229
5228
5229
+
:param question_parse_mode: Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed
5230
+
:type question_parse_mode: :obj:`str`
5231
+
5232
+
:param question_entities: A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode
5233
+
:type question_entities: :obj:`list` of :obj:`MessageEntity`
5234
+
5230
5235
:return: On success, the sent Message is returned.
5231
5236
:rtype: :obj:`types.Message`
5232
5237
"""
@@ -5258,6 +5263,7 @@ def send_poll(
5258
5263
raiseRuntimeError("The send_poll signature was changed, please see send_poll function details.")
:param business_connection_id: Identifier of the business connection to send the message through
6573
6576
:type business_connection_id: :obj:`str`
6574
6577
6578
+
:param question_parse_mode: Mode for parsing entities in the question. See formatting options for more details. Currently, only custom emoji entities are allowed
6579
+
:type question_parse_mode: :obj:`str`
6580
+
6581
+
:param question_entities: A JSON-serialized list of special entities that appear in the poll question. It can be specified instead of question_parse_mode
6582
+
:type question_entities: :obj:`list` of :obj:`MessageEntity`
6583
+
6575
6584
:return: On success, the sent Message is returned.
0 commit comments