randydev commited on
Commit
ff9de0a
·
verified ·
1 Parent(s): 4eed1c8
Files changed (1) hide show
  1. Detection/UserBot/api_raw.py +3 -0
Detection/UserBot/api_raw.py CHANGED
@@ -24,6 +24,7 @@ SOFTWARE.
24
 
25
  from pyrogram import Client
26
  import logging
 
27
  from Detection import assistant
28
  from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
29
 
@@ -202,6 +203,7 @@ async def check_raw(client: Client, update, users, chats):
202
  elif isinstance(chat, Channel) and getattr(chat, "left", False):
203
  if cid in IGNORE_LOGS:
204
  return
 
205
  return await assistant.send_message(
206
  client.me.id,
207
  f"#UNBANNED #LEFT_ALERT\n"
@@ -279,6 +281,7 @@ async def check_raw(client: Client, update, users, chats):
279
  )
280
  )
281
  elif isinstance(chat, Channel) and getattr(chat, "broadcast", False):
 
282
  return await assistant.send_message(
283
  client.me.id,
284
  f"#BROADCAST_ALERT\n"
 
24
 
25
  from pyrogram import Client
26
  import logging
27
+ import asyncio
28
  from Detection import assistant
29
  from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
30
 
 
203
  elif isinstance(chat, Channel) and getattr(chat, "left", False):
204
  if cid in IGNORE_LOGS:
205
  return
206
+ await asyncio.sleep(1.5)
207
  return await assistant.send_message(
208
  client.me.id,
209
  f"#UNBANNED #LEFT_ALERT\n"
 
281
  )
282
  )
283
  elif isinstance(chat, Channel) and getattr(chat, "broadcast", False):
284
+ await asyncio.sleep(1.5)
285
  return await assistant.send_message(
286
  client.me.id,
287
  f"#BROADCAST_ALERT\n"