Skip to content

Commit 603585f

Browse files
docs: change possible poll options count
1 parent 6995241 commit 603585f

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

pyrogram/methods/messages/send_poll.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ async def send_poll(
8787
Only custom emoji entities are allowed to be added and only by Premium users.
8888
8989
options (List of :obj:`~pyrogram.types.InputPollOption`):
90-
List of 2-12 answer options.
90+
List of 1-12 answer options.
9191
9292
description (``str`` | :obj:`~pyrogram.types.FormattedText`, *optional*):
9393
Description of the poll to be sent, 0-1024 characters after entities parsing.

pyrogram/types/messages_and_media/message.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5132,7 +5132,7 @@ async def reply_poll(
51325132
Only custom emoji entities are allowed to be added and only by Premium users.
51335133
51345134
options (List of ``str`` | List of :obj:`~pyrogram.types.FormattedText`):
5135-
List of 2-12 answer options, each 1-100 characters.
5135+
List of 1-12 answer options, each 1-100 characters.
51365136
51375137
message_thread_id (``int``, *optional*):
51385138
Unique identifier for the target message thread (topic) of the forum.
@@ -5319,7 +5319,7 @@ async def answer_poll(
53195319
Only custom emoji entities are allowed to be added and only by Premium users.
53205320
53215321
options (List of ``str`` | List of :obj:`~pyrogram.types.FormattedText`):
5322-
List of 2-12 answer options, each 1-100 characters.
5322+
List of 1-12 answer options, each 1-100 characters.
53235323
53245324
message_thread_id (``int``, *optional*):
53255325
Unique identifier for the target message thread (topic) of the forum.

0 commit comments

Comments
 (0)