diff --git a/pyrogram/__init__.py b/pyrogram/__init__.py index 3c1efd2bb..0f7cec54f 100644 --- a/pyrogram/__init__.py +++ b/pyrogram/__init__.py @@ -17,7 +17,7 @@ # along with Pyrogram. If not, see . __fork_name__ = "pyrotgfork" -__version__ = "2.1.32.14" +__version__ = "2.1.32.15" __license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)" __copyright__ = "Copyright (C) 2017-present Dan " diff --git a/pyrogram/types/messages_and_media/poll.py b/pyrogram/types/messages_and_media/poll.py index 67617cbe0..188fab38e 100644 --- a/pyrogram/types/messages_and_media/poll.py +++ b/pyrogram/types/messages_and_media/poll.py @@ -20,8 +20,7 @@ from typing import List, Union, Optional import pyrogram -from pyrogram import raw, enums, utils -from pyrogram import types +from pyrogram import enums, raw, types, utils from ..object import Object from ..update import Update from .message import Str @@ -198,10 +197,12 @@ def _parse_update(client, update: "raw.types.UpdateMessagePoll"): if update.poll is not None: return Poll._parse(client, update) + # TODO: FIXME! results = update.results.results chosen_option_id = None correct_option_id = None options = [] + question = "" for i, result in enumerate(results): if result.chosen: @@ -222,7 +223,7 @@ def _parse_update(client, update: "raw.types.UpdateMessagePoll"): return Poll( id=str(update.poll_id), - question="", + question=question, options=options, total_voter_count=update.results.total_voters, is_closed=False,