Update FileStream/bot/plugins/FileHandlers/polls.py
Browse files
FileStream/bot/plugins/FileHandlers/polls.py
CHANGED
|
@@ -5,6 +5,21 @@ from FileStream.bot import FileStream
|
|
| 5 |
async def get_result(FileStream , message):
|
| 6 |
result = await FileStream.get_messages(chat_id , poll.id)
|
| 7 |
print(result.poll.chosen_option)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 8 |
|
| 9 |
"""
|
| 10 |
@FileStream.on_poll()
|
|
|
|
| 5 |
async def get_result(FileStream , message):
|
| 6 |
result = await FileStream.get_messages(chat_id , poll.id)
|
| 7 |
print(result.poll.chosen_option)
|
| 8 |
+
instruction = {
|
| 9 |
+
"privacy_type":"PUBLIC",
|
| 10 |
+
"user_id":message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id,,
|
| 11 |
+
"user_type": "TELEGRAM"
|
| 12 |
+
}
|
| 13 |
+
main_msg= await FileStream.get_messages(instruction['user_id]', result.poll.explanation)
|
| 14 |
+
#reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
| 15 |
+
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
| 16 |
+
await update.message.edit_text(
|
| 17 |
+
text=stream_text,
|
| 18 |
+
parse_mode=ParseMode.HTML,
|
| 19 |
+
disable_web_page_preview=True,
|
| 20 |
+
reply_markup=reply_markup,
|
| 21 |
+
)
|
| 22 |
+
|
| 23 |
|
| 24 |
"""
|
| 25 |
@FileStream.on_poll()
|