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 17
17
# along with Pyrogram. If not, see <http://www.gnu.org/licenses/>.
18
18
19
19
__fork_name__ = "pyrotgfork"
20
- __version__ = "2.1.32.14 "
20
+ __version__ = "2.1.32.15 "
21
21
__license__ = "GNU Lesser General Public License v3.0 (LGPL-3.0)"
22
22
__copyright__ = "Copyright (C) 2017-present Dan <https://github.com/delivrance>"
23
23
Original file line number Diff line number Diff line change 20
20
from typing import List , Union , Optional
21
21
22
22
import pyrogram
23
- from pyrogram import raw , enums , utils
24
- from pyrogram import types
23
+ from pyrogram import enums , raw , types , utils
25
24
from ..object import Object
26
25
from ..update import Update
27
26
from .message import Str
@@ -198,10 +197,12 @@ def _parse_update(client, update: "raw.types.UpdateMessagePoll"):
198
197
if update .poll is not None :
199
198
return Poll ._parse (client , update )
200
199
200
+ # TODO: FIXME!
201
201
results = update .results .results
202
202
chosen_option_id = None
203
203
correct_option_id = None
204
204
options = []
205
+ question = ""
205
206
206
207
for i , result in enumerate (results ):
207
208
if result .chosen :
@@ -222,7 +223,7 @@ def _parse_update(client, update: "raw.types.UpdateMessagePoll"):
222
223
223
224
return Poll (
224
225
id = str (update .poll_id ),
225
- question = "" ,
226
+ question = question ,
226
227
options = options ,
227
228
total_voter_count = update .results .total_voters ,
228
229
is_closed = False ,
You can’t perform that action at this time.
0 commit comments