mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 16:14:52 +00:00
Poll ids are now strings and not integers
This commit is contained in:
parent
cbc938931d
commit
5c638e707e
1 changed files with 3 additions and 3 deletions
|
|
@ -28,7 +28,7 @@ class Poll(PyrogramType):
|
||||||
"""This object represents a Poll.
|
"""This object represents a Poll.
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
id (``int``):
|
id (``str``):
|
||||||
Unique poll identifier.
|
Unique poll identifier.
|
||||||
|
|
||||||
question (``str``):
|
question (``str``):
|
||||||
|
|
@ -53,7 +53,7 @@ class Poll(PyrogramType):
|
||||||
self,
|
self,
|
||||||
*,
|
*,
|
||||||
client: "pyrogram.client.ext.BaseClient",
|
client: "pyrogram.client.ext.BaseClient",
|
||||||
id: int,
|
id: str,
|
||||||
question: str,
|
question: str,
|
||||||
options: List[PollOption],
|
options: List[PollOption],
|
||||||
is_closed: bool,
|
is_closed: bool,
|
||||||
|
|
@ -98,7 +98,7 @@ class Poll(PyrogramType):
|
||||||
)
|
)
|
||||||
|
|
||||||
return Poll(
|
return Poll(
|
||||||
id=poll.id,
|
id=str(poll.id),
|
||||||
question=poll.question,
|
question=poll.question,
|
||||||
options=options,
|
options=options,
|
||||||
is_closed=poll.closed,
|
is_closed=poll.closed,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue