File tree Expand file tree Collapse file tree 2 files changed +14
-13
lines changed
Expand file tree Collapse file tree 2 files changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def vote_poll(self,
5353 functions .messages .SendVote (
5454 peer = self .resolve_peer (chat_id ),
5555 msg_id = message_id ,
56- options = [poll .options [option ]._data ]
56+ options = [poll .options [option ].data ]
5757 )
5858 )
5959
Original file line number Diff line number Diff line change 2121
2222
2323class PollOption (PyrogramType ):
24+ """This object represents a Poll Option.
25+
26+ Args:
27+ text (``str``):
28+ Text of the poll option.
29+
30+ voters (``int``):
31+ The number of users who voted this option.
32+
33+ data (``bytes``):
34+ Unique data that identifies this option among all the other options in a poll.
35+ """
36+
2437 def __init__ (self ,
2538 * ,
2639 client : "pyrogram.client.ext.BaseClient" ,
2740 text : str ,
2841 voters : int ,
2942 data : bytes ):
30- """This object represents a Poll Option.
31-
32- Args:
33- text (``str``):
34- Text of the poll option.
35-
36- voters (``int``):
37- The number of users who voted this option.
38-
39- data (``bytes``):
40- Unique data that identifies this option (among all the other options in a poll).
41- """
4243 super ().__init__ (client )
4344
4445 self .text = text
You can’t perform that action at this time.
0 commit comments