BinaryONe
commited on
Commit
·
d7541dc
1
Parent(s):
8cac67d
Polls Update
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
@@ -129,7 +129,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
129 |
type= enums.PollType.REGULAR,
|
130 |
reply_to_message_id=message_id,
|
131 |
explanation=f"{file_caption}",
|
132 |
-
question=f"{message_id}_{user_id}
|
133 |
options=["Movie", "WebSeries", "Anime", "Documentary", "Regular"],
|
134 |
allows_multiple_answers=True,
|
135 |
chat_id=user_id
|
|
|
129 |
type= enums.PollType.REGULAR,
|
130 |
reply_to_message_id=message_id,
|
131 |
explanation=f"{file_caption}",
|
132 |
+
question=f"{message_id}_{user_id}_File Name :\n{file_caption}",
|
133 |
options=["Movie", "WebSeries", "Anime", "Documentary", "Regular"],
|
134 |
allows_multiple_answers=True,
|
135 |
chat_id=user_id
|
FileStream/bot/plugins/FileHandlers/polls.py
CHANGED
@@ -17,9 +17,10 @@ async def get_result(FileStream , message):
|
|
17 |
#update FileStream.stop_poll(user_id, message.id)
|
18 |
instruction = {
|
19 |
"privacy_type":"PUBLIC",
|
20 |
-
"
|
21 |
-
"
|
22 |
}
|
|
|
23 |
main_msg= await FileStream.get_messages(user_id, msg_id)
|
24 |
#reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
25 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(main_msg, instruction),replied_message=result.id)
|
|
|
17 |
#update FileStream.stop_poll(user_id, message.id)
|
18 |
instruction = {
|
19 |
"privacy_type":"PUBLIC",
|
20 |
+
"user_type": "TELEGRAM",
|
21 |
+
"user_id":user_id,
|
22 |
}
|
23 |
+
#"user_id":message.from_user.id if (message.chat.type == ChatType.PRIVATE) else message.chat.id
|
24 |
main_msg= await FileStream.get_messages(user_id, msg_id)
|
25 |
#reply = await message.reply_text(LANG.PROCESSING_TEXT)
|
26 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(main_msg, instruction),replied_message=result.id)
|