Spaces:
Running
Running
BinaryONe
commited on
Commit
·
cedcdbf
1
Parent(s):
688ccbe
changes In Upload
Browse files
FileStream/bot/plugins/FileHandlers/callback.py
CHANGED
@@ -204,6 +204,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
204 |
|
205 |
#type=enums.PollType.QUIZ,
|
206 |
print(polls)
|
|
|
207 |
file_info = get_file_info(message, instruction)
|
208 |
# Here we are Adding the File Into the database First
|
209 |
inserted_id = await db.add_file(file_info)
|
@@ -216,7 +217,7 @@ async def cb_data(bot: Client, update: CallbackQuery):
|
|
216 |
parse_mode=ParseMode.HTML,
|
217 |
disable_web_page_preview=True,
|
218 |
reply_markup=reply_markup,
|
219 |
-
)
|
220 |
except FloodWait as e:
|
221 |
print(f"Sleeping for {str(e.value)}s")
|
222 |
await asyncio.sleep(e.value)
|
|
|
204 |
|
205 |
#type=enums.PollType.QUIZ,
|
206 |
print(polls)
|
207 |
+
"""
|
208 |
file_info = get_file_info(message, instruction)
|
209 |
# Here we are Adding the File Into the database First
|
210 |
inserted_id = await db.add_file(file_info)
|
|
|
217 |
parse_mode=ParseMode.HTML,
|
218 |
disable_web_page_preview=True,
|
219 |
reply_markup=reply_markup,
|
220 |
+
)
|
221 |
except FloodWait as e:
|
222 |
print(f"Sleeping for {str(e.value)}s")
|
223 |
await asyncio.sleep(e.value)
|