Spaces:
Running
Running
BinaryONe
commited on
Commit
·
b35fc5b
1
Parent(s):
0e8b818
changes In Upload
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
@@ -133,6 +133,8 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
133 |
message_id = int(usr_cmd[2])
|
134 |
resp_ms_id = int(usr_cmd[3])
|
135 |
message = await FileStream.get_messages(user_id, message_id)
|
|
|
|
|
136 |
instruction = {
|
137 |
"privacy_type": "PUBLIC",
|
138 |
"user_id": user_id,
|
@@ -169,7 +171,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
169 |
),
|
170 |
)
|
171 |
"""
|
172 |
-
await FileStream.edit_message_media(
|
173 |
chat_id=user_id,
|
174 |
message_id=resp_ms_id,
|
175 |
media=InputMediaPoll(
|
@@ -182,6 +184,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
182 |
)
|
183 |
),
|
184 |
)
|
|
|
185 |
"""
|
186 |
PollAnswer(
|
187 |
await FileStream.send_poll(
|
|
|
133 |
message_id = int(usr_cmd[2])
|
134 |
resp_ms_id = int(usr_cmd[3])
|
135 |
message = await FileStream.get_messages(user_id, message_id)
|
136 |
+
response = await FileStream.get_messages(user_id, resp_ms_id)
|
137 |
+
print("Response Update:",update,f"Message ID:{resp_ms_id}")
|
138 |
instruction = {
|
139 |
"privacy_type": "PUBLIC",
|
140 |
"user_id": user_id,
|
|
|
171 |
),
|
172 |
)
|
173 |
"""
|
174 |
+
update=await FileStream.edit_message_media(
|
175 |
chat_id=user_id,
|
176 |
message_id=resp_ms_id,
|
177 |
media=InputMediaPoll(
|
|
|
184 |
)
|
185 |
),
|
186 |
)
|
187 |
+
print("Update:",update)
|
188 |
"""
|
189 |
PollAnswer(
|
190 |
await FileStream.send_poll(
|
FileStream/bot/plugins/FileHandlers/stream.py
CHANGED
@@ -66,7 +66,7 @@ async def private_receive_handler(bot: Client, message: Message):
|
|
66 |
|
67 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
68 |
await reply.edit_text(text=stream_text,
|
69 |
-
|
70 |
)
|
71 |
except FloodWait as e:
|
72 |
print(f"Sleeping for {str(e.value)}s")
|
|
|
66 |
|
67 |
reply_markup, stream_text = await upload_type_func(file_info=get_file_info(message, instruction),replied_message=reply.id)
|
68 |
await reply.edit_text(text=stream_text,
|
69 |
+
reply_markup=reply_markup,
|
70 |
)
|
71 |
except FloodWait as e:
|
72 |
print(f"Sleeping for {str(e.value)}s")
|