Skip to content

Commit

Permalink
Update auto_filter.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MRK-YT authored May 1, 2022
1 parent 7627d65 commit f518059
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions bot/plugins/auto_filter.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ACTIVE_CHATS = {}
db = Database()

@Bot.on_message(filters.text & filters.group & ~filters.bot, group=0)
@Bot.on_message(filters.text & filters.group, group=0)
async def auto_filter(bot, update):
"""
A Funtion To Handle Incoming Text And Reply With Appropriate Results
Expand Down Expand Up @@ -112,7 +112,7 @@ async def auto_filter(bot, update):
bot_= await bot.get_me()
FIND["bot_details"] = bot_
except FloodWait as e:
asyncio.sleep(e.x)
await asyncio.sleep(e.value)
bot_= await bot.get_me()
FIND["bot_details"] = bot_

Expand Down Expand Up @@ -206,7 +206,7 @@ async def auto_filter(bot, update):
text=f"Found {(len_results)} Results For Your Query: <code>{query}</code>",
reply_markup=reply_markup,
parse_mode="html",
reply_to_message_id=update.message_id
reply_to_message_id=update.id
)

except ButtonDataInvalid:
Expand Down Expand Up @@ -286,4 +286,3 @@ async def recacher(group_id, ReCacheInvite=True, ReCacheActive=False, bot=Bot, u
ACTIVE_CHATS[str(group_id)] = achatId
return


0 comments on commit f518059

Please sign in to comment.