From 5c638e707e0fe70e3b449ffdbdafd5be3ba8b36a Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 14 Apr 2019 20:48:25 +0200 Subject: [PATCH] Poll ids are now strings and not integers --- pyrogram/client/types/messages_and_media/poll.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pyrogram/client/types/messages_and_media/poll.py b/pyrogram/client/types/messages_and_media/poll.py index dfe7daa9..e0461bba 100644 --- a/pyrogram/client/types/messages_and_media/poll.py +++ b/pyrogram/client/types/messages_and_media/poll.py @@ -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,