mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-28 12:57:52 +00:00
Poll ids are now strings and not integers
This commit is contained in:
parent
cbc938931d
commit
5c638e707e
@ -28,7 +28,7 @@ class Poll(PyrogramType):
|
||||
"""This object represents a Poll.
|
||||
|
||||
Args:
|
||||
id (``int``):
|
||||
id (``str``):
|
||||
Unique poll identifier.
|
||||
|
||||
question (``str``):
|
||||
@ -53,7 +53,7 @@ class Poll(PyrogramType):
|
||||
self,
|
||||
*,
|
||||
client: "pyrogram.client.ext.BaseClient",
|
||||
id: int,
|
||||
id: str,
|
||||
question: str,
|
||||
options: List[PollOption],
|
||||
is_closed: bool,
|
||||
@ -98,7 +98,7 @@ class Poll(PyrogramType):
|
||||
)
|
||||
|
||||
return Poll(
|
||||
id=poll.id,
|
||||
id=str(poll.id),
|
||||
question=poll.question,
|
||||
options=options,
|
||||
is_closed=poll.closed,
|
||||
|
Loading…
x
Reference in New Issue
Block a user