File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 2020from typing import List , Union , Optional
2121
2222import pyrogram
23- from pyrogram import raw , enums , utils
24- from pyrogram import types
23+ from pyrogram import enums , raw , types , utils
2524from ..object import Object
2625from ..update import Update
2726from .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 ,
You can’t perform that action at this time.
0 commit comments