Update FileStream/bot/plugins/FileHandlers/polls.py
Browse files
FileStream/bot/plugins/FileHandlers/polls.py
CHANGED
@@ -4,7 +4,8 @@ from FileStream.utils.FileProcessors.file_properties import get_file_ids, get_fi
|
|
4 |
from FileStream.utils.FileProcessors.bot_utils import is_user_banned, is_user_exist, is_user_joined, gen_link, is_channel_banned, is_channel_exist, is_user_authorized, upload_type_func
|
5 |
|
6 |
|
7 |
-
|
|
|
8 |
async def get_result(FileStream , message):
|
9 |
result = await FileStream.get_messages(chat_id , poll.id)
|
10 |
print(result.poll.chosen_option)
|
|
|
4 |
from FileStream.utils.FileProcessors.bot_utils import is_user_banned, is_user_exist, is_user_joined, gen_link, is_channel_banned, is_channel_exist, is_user_authorized, upload_type_func
|
5 |
|
6 |
|
7 |
+
#@FileStream.on_message(filters.command("result"))
|
8 |
+
@FileStream.on_poll()
|
9 |
async def get_result(FileStream , message):
|
10 |
result = await FileStream.get_messages(chat_id , poll.id)
|
11 |
print(result.poll.chosen_option)
|