Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions plugins/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ async def index_files_to_db(lst_msg_id, chat, msg, bot):
reply_markup=reply)
if message.empty:
deleted += 1
await asyncio.sleep(0.1)
continue
elif not message.media:
no_media += 1
Expand All @@ -172,6 +173,7 @@ async def index_files_to_db(lst_msg_id, chat, msg, bot):
media.file_type = message.media.value
media.caption = message.caption
aynav, vnay = await save_file(media)
await asyncio.sleep(0.1)
if aynav:
total_files += 1
elif vnay == 0:
Expand Down