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 type: Poll type, “quiz” or “regular”, defaults to “regular”
6137
6144
:type type: :obj:`str`
6138
6145
6139
-
:param allows_multiple_answers: True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
6146
+
:param allows_multiple_answers: True, if the poll allows multiple answers, defaults to False
6140
6147
:type allows_multiple_answers: :obj:`bool`
6141
6148
6142
-
:param correct_option_id: 0-based identifier of the correct answer option. Available only for polls in quiz mode, defaults to None
6149
+
:param correct_option_id: Deprecated, use correct_option_ids instead.
6143
6150
:type correct_option_id: :obj:`int`
6144
6151
6145
6152
: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
@@ -6200,6 +6207,30 @@ def send_poll(
6200
6207
of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
6201
6208
:type allow_paid_broadcast: :obj:`bool`
6202
6209
6210
+
:param allows_revoting: Pass True, if the poll allows to change chosen answer options, defaults to False for quizzes and to True for regular polls
6211
+
:type allows_revoting: :obj:`bool`
6212
+
6213
+
:param shuffle_options: Pass True, if the poll options must be shown in random order
6214
+
:type shuffle_options: :obj:`bool`
6215
+
6216
+
:param allow_adding_options: Pass True, if answer options can be added to the poll after creation; not supported for anonymous polls and quizzes
6217
+
:type allow_adding_options: :obj:`bool`
6218
+
6219
+
:param hide_results_until_closes: Pass True, if poll results must be shown only after the poll closes
6220
+
:type hide_results_until_closes: :obj:`bool`
6221
+
6222
+
:param correct_option_ids: A JSON-serialized list of monotonically increasing 0-based identifiers of the correct answer options, required for polls in quiz mode
6223
+
:type correct_option_ids: :obj:`list` of :obj:`int`
6224
+
6225
+
:param description: Description of the poll to be sent, 0-1024 characters after entities parsing
6226
+
:type description: :obj:`str`
6227
+
6228
+
:param description_parse_mode: Mode for parsing entities in the poll description. See formatting options for more details.
6229
+
:type description_parse_mode: :obj:`str`
6230
+
6231
+
:param description_entities: A JSON-serialized list of special entities that appear in the poll description, which can be specified instead of description_parse_mode
6232
+
:type description_entities: :obj:`list` of :obj:`MessageEntity`
6233
+
6203
6234
:return: On success, the sent Message is returned.
:param type: Poll type, “quiz” or “regular”, defaults to “regular”
7653
7662
:type type: :obj:`str`
7654
7663
7655
-
:param allows_multiple_answers: True, if the poll allows multiple answers, ignored for polls in quiz mode, defaults to False
7664
+
:param allows_multiple_answers: True, if the poll allows multiple answers, defaults to False
7656
7665
:type allows_multiple_answers: :obj:`bool`
7657
7666
7658
-
:param correct_option_id: 0-based identifier of the correct answer option. Available only for polls in quiz mode,
7667
+
:param correct_option_id: Deprecated, use correct_option_ids instead.
7659
7668
defaults to None
7660
7669
:type correct_option_id: :obj:`int`
7661
7670
@@ -7720,6 +7729,30 @@ async def send_poll(
7720
7729
of 0.1 Telegram Stars per message. The relevant Stars will be withdrawn from the bot's balance
7721
7730
:type allow_paid_broadcast: :obj:`bool`
7722
7731
7732
+
:param allows_revoting: Pass True, if the poll allows to change chosen answer options, defaults to False for quizzes and to True for regular polls
7733
+
:type allows_revoting: :obj:`bool`
7734
+
7735
+
:param shuffle_options: Pass True, if the poll options must be shown in random order
7736
+
:type shuffle_options: :obj:`bool`
7737
+
7738
+
:param allow_adding_options: Pass True, if answer options can be added to the poll after creation; not supported for anonymous polls and quizzes
7739
+
:type allow_adding_options: :obj:`bool`
7740
+
7741
+
:param hide_results_until_closes: Pass True, if poll results must be shown only after the poll closes
7742
+
:type hide_results_until_closes: :obj:`bool`
7743
+
7744
+
:param correct_option_ids: A JSON-serialized list of monotonically increasing 0-based identifiers of the correct answer options, required for polls in quiz mode
7745
+
:type correct_option_ids: :obj:`list` of :obj:`int`
7746
+
7747
+
:param description: Description of the poll to be sent, 0-1024 characters after entities parsing
7748
+
:type description: :obj:`str`
7749
+
7750
+
:param description_parse_mode: Mode for parsing entities in the poll description. See formatting options for more details.
7751
+
:type description_parse_mode: :obj:`str`
7752
+
7753
+
:param description_entities: A JSON-serialized list of special entities that appear in the poll description, which can be specified instead of description_parse_mode
7754
+
:type description_entities: :obj:`list` of :obj:`MessageEntity`
7755
+
7723
7756
:return: On success, the sent Message is returned.
0 commit comments