BinaryONe commited on
Commit
ed138b3
·
1 Parent(s): 2008e67

Polls Update

Browse files
FileStream/bot/plugins/FileHandlers/polls.py CHANGED
@@ -12,7 +12,7 @@ async def get_result(FileStream , message):
12
  question_parts = message.question.split('_')
13
  msg_id = question_parts[0]
14
  user_id = question_parts[1]
15
- options_list = [option['text'] for option in message.options if option['voter_count'] == 1]
16
  print(options_list)
17
  await FileStream.stop_poll(user_id, message.id)
18
  instruction = {
 
12
  question_parts = message.question.split('_')
13
  msg_id = question_parts[0]
14
  user_id = question_parts[1]
15
+ options_list = [option.text for option in message.options if option.voter_count == 1]
16
  print(options_list)
17
  await FileStream.stop_poll(user_id, message.id)
18
  instruction = {