Update Detection/UserBot/api_raw.py
Browse files
Detection/UserBot/api_raw.py
CHANGED
@@ -27,6 +27,8 @@ import logging
|
|
27 |
from Detection import assistant
|
28 |
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
29 |
|
|
|
|
|
30 |
from pyrogram.raw.types import (
|
31 |
UpdateNewMessage,
|
32 |
UpdatePrivacy,
|
@@ -198,6 +200,8 @@ async def check_raw(client: Client, update, users, chats):
|
|
198 |
)
|
199 |
)
|
200 |
elif isinstance(chat, Channel) and getattr(chat, "left", False):
|
|
|
|
|
201 |
await assistant.send_message(
|
202 |
client.me.id,
|
203 |
f"#UNBANNED #LEFT_ALERT\n"
|
|
|
27 |
from Detection import assistant
|
28 |
from pyrogram.types import InlineKeyboardMarkup, InlineKeyboardButton
|
29 |
|
30 |
+
IGNORE_LOGS = [2234906165]
|
31 |
+
|
32 |
from pyrogram.raw.types import (
|
33 |
UpdateNewMessage,
|
34 |
UpdatePrivacy,
|
|
|
200 |
)
|
201 |
)
|
202 |
elif isinstance(chat, Channel) and getattr(chat, "left", False):
|
203 |
+
if cid in IGNORE_LOGS:
|
204 |
+
return
|
205 |
await assistant.send_message(
|
206 |
client.me.id,
|
207 |
f"#UNBANNED #LEFT_ALERT\n"
|