Skip to content

Commit c7a1285

Browse files
committed
Update Pyrogram to 2.1.32.15
1 parent c0db4cb commit c7a1285

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

pyrogram/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
1818

1919
__fork_name__ = "pyrotgfork"
20-
__version__ = "2.1.32.14"
20+
__version__ = "2.1.32.15"
2121
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
2222
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
2323

pyrogram/types/messages_and_media/poll.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@
2020
from typing import List, Union, Optional
2121

2222
import pyrogram
23-
from pyrogram import raw, enums, utils
24-
from pyrogram import types
23+
from pyrogram import enums, raw, types, utils
2524
from ..object import Object
2625
from ..update import Update
2726
from .message import Str
@@ -198,10 +197,12 @@ def _parse_update(client, update: "raw.types.UpdateMessagePoll"):
198197
if update.poll is not None:
199198
return Poll._parse(client, update)
200199

200+
# TODO: FIXME!
201201
results = update.results.results
202202
chosen_option_id = None
203203
correct_option_id = None
204204
options = []
205+
question = ""
205206

206207
for i, result in enumerate(results):
207208
if result.chosen:
@@ -222,7 +223,7 @@ def _parse_update(client, update: "raw.types.UpdateMessagePoll"):
222223

223224
return Poll(
224225
id=str(update.poll_id),
225-
question="",
226+
question=question,
226227
options=options,
227228
total_voter_count=update.results.total_voters,
228229
is_closed=False,

0 commit comments

Comments
 (0)