BinaryONe
commited on
Commit
·
e2897a0
1
Parent(s):
a085062
Polls Update
Browse files
FileStream/bot/plugins/FileHandlers/polls.py
CHANGED
@@ -9,7 +9,7 @@ from FileStream.utils.FileProcessors.bot_utils import is_user_banned, is_user_ex
|
|
9 |
async def get_result(FileStream , message):
|
10 |
#result = await FileStream.get_messages(chat_id , poll.id)
|
11 |
print(message)
|
12 |
-
question_parts = message.
|
13 |
msg_id = question_parts[0]
|
14 |
user_id = question_parts[1]
|
15 |
options_list = [option['text'] for option in message.poll.options if option['voter_count'] == 1]
|
|
|
9 |
async def get_result(FileStream , message):
|
10 |
#result = await FileStream.get_messages(chat_id , poll.id)
|
11 |
print(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.poll.options if option['voter_count'] == 1]
|