BinaryONe
commited on
Commit
·
85fca9a
1
Parent(s):
d7541dc
Polls Update
Browse files
FileStream/bot/plugins/FileHandlers/polls.py
CHANGED
@@ -10,8 +10,8 @@ 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.options if option.voter_count == 1]
|
16 |
print("OPtion List",options_list, "USERID", user_id, "MSGID", msg_id)
|
17 |
#update FileStream.stop_poll(user_id, message.id)
|
|
|
10 |
#result = await FileStream.get_messages(chat_id , poll.id)
|
11 |
print(message)
|
12 |
question_parts = message.question.split('_')
|
13 |
+
msg_id = int(question_parts[0])
|
14 |
+
user_id = int(question_parts[1])
|
15 |
options_list = [option.text for option in message.options if option.voter_count == 1]
|
16 |
print("OPtion List",options_list, "USERID", user_id, "MSGID", msg_id)
|
17 |
#update FileStream.stop_poll(user_id, message.id)
|
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
@@ -72,7 +72,7 @@ async def private_receive_handler(bot: Client, message: Message):
|
|
72 |
callback_data=f"initilize_{file_info['user_id']}_{file_info['message_id']}_{reply.id}")],
|
73 |
[ InlineKeyboardButton("ᴄʟᴏsᴇ", callback_data="close")]
|
74 |
])
|
75 |
-
await reply.edit_text(text="
|
76 |
reply_markup=reply_markup,
|
77 |
)
|
78 |
except FloodWait as e:
|
|
|
72 |
callback_data=f"initilize_{file_info['user_id']}_{file_info['message_id']}_{reply.id}")],
|
73 |
[ InlineKeyboardButton("ᴄʟᴏsᴇ", callback_data="close")]
|
74 |
])
|
75 |
+
await reply.edit_text(text=f"{file_info['file']['caption'] if file_info['file']['caption'] else file_info['file']['file_name']}",
|
76 |
reply_markup=reply_markup,
|
77 |
)
|
78 |
except FloodWait as e:
|