Skip to content

Commit

Permalink
Update extra.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ufoptg committed Feb 2, 2024
1 parent c06f7ec commit e39cdfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/extra.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,10 @@ async def delete_messages(event):
chat_id = event.chat_id

# Get the messages in the chat
async for message in nimbus_bot.iter_messages(chat_id):
async for message in ultroid_bot.iter_messages(chat_id):
if message.text and search_phrase.lower() in message.text.lower():
try:
await nimbus_bot.delete_messages(chat_id, message)
await ultroid_bot.delete_messages(chat_id, message)
except FloodWaitError as e:
# If a FloodWaitError occurs, wait for the specified time
# before retrying
Expand Down

0 comments on commit e39cdfd

Please sign in to comment.