- Detection/UserBot/api_raw.py +44 -5
Detection/UserBot/api_raw.py
CHANGED
@@ -175,7 +175,7 @@ async def check_raw(client: Client, update, users, chats):
|
|
175 |
[[
|
176 |
InlineKeyboardButton(
|
177 |
"View Channel",
|
178 |
-
url=f"https://t.me/c/{cid}
|
179 |
)
|
180 |
]]
|
181 |
)
|
@@ -194,7 +194,7 @@ async def check_raw(client: Client, update, users, chats):
|
|
194 |
[[
|
195 |
InlineKeyboardButton(
|
196 |
"View Group",
|
197 |
-
url=f"https://t.me/c/{cid}
|
198 |
)
|
199 |
]]
|
200 |
)
|
@@ -215,7 +215,7 @@ async def check_raw(client: Client, update, users, chats):
|
|
215 |
[[
|
216 |
InlineKeyboardButton(
|
217 |
"View Channel",
|
218 |
-
url=f"https://t.me/c/{cid}
|
219 |
)
|
220 |
]]
|
221 |
)
|
@@ -234,7 +234,7 @@ async def check_raw(client: Client, update, users, chats):
|
|
234 |
[[
|
235 |
InlineKeyboardButton(
|
236 |
"View Channel",
|
237 |
-
url=f"https://t.me/c/{cid}
|
238 |
)
|
239 |
]]
|
240 |
)
|
@@ -253,7 +253,46 @@ async def check_raw(client: Client, update, users, chats):
|
|
253 |
[[
|
254 |
InlineKeyboardButton(
|
255 |
"View Channel",
|
256 |
-
url=f"https://t.me/c/{cid}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
)
|
258 |
]]
|
259 |
)
|
|
|
175 |
[[
|
176 |
InlineKeyboardButton(
|
177 |
"View Channel",
|
178 |
+
url=f"https://t.me/c/{cid}/-1"
|
179 |
)
|
180 |
]]
|
181 |
)
|
|
|
194 |
[[
|
195 |
InlineKeyboardButton(
|
196 |
"View Group",
|
197 |
+
url=f"https://t.me/c/{cid}/-1"
|
198 |
)
|
199 |
]]
|
200 |
)
|
|
|
215 |
[[
|
216 |
InlineKeyboardButton(
|
217 |
"View Channel",
|
218 |
+
url=f"https://t.me/c/{cid}/-1"
|
219 |
)
|
220 |
]]
|
221 |
)
|
|
|
234 |
[[
|
235 |
InlineKeyboardButton(
|
236 |
"View Channel",
|
237 |
+
url=f"https://t.me/c/{cid}/-1"
|
238 |
)
|
239 |
]]
|
240 |
)
|
|
|
253 |
[[
|
254 |
InlineKeyboardButton(
|
255 |
"View Channel",
|
256 |
+
url=f"https://t.me/c/{cid}/-1"
|
257 |
+
)
|
258 |
+
]]
|
259 |
+
)
|
260 |
+
)
|
261 |
+
|
262 |
+
elif isinstance(chat, Channel) and getattr(chat, "fake", False):
|
263 |
+
await assistant.send_message(
|
264 |
+
client.me.id,
|
265 |
+
f"#FAKE_ALERT\n"
|
266 |
+
f"**Channel:** {chat.title}\n"
|
267 |
+
f"**Date:** {chat.date}\n"
|
268 |
+
f"**ID:** `{cid}`\n"
|
269 |
+
f"**Username:** <spoiler>{chat.username if chat else None}</spoiler>\n"
|
270 |
+
f"**Access hash:** {chat.access_hash}\n",
|
271 |
+
disable_web_page_preview=True,
|
272 |
+
reply_markup=InlineKeyboardMarkup(
|
273 |
+
[[
|
274 |
+
InlineKeyboardButton(
|
275 |
+
"View Channel",
|
276 |
+
url=f"https://t.me/c/{cid}/-1"
|
277 |
+
)
|
278 |
+
]]
|
279 |
+
)
|
280 |
+
)
|
281 |
+
elif isinstance(chat, Channel) and getattr(chat, "broadcast", False):
|
282 |
+
await assistant.send_message(
|
283 |
+
client.me.id,
|
284 |
+
f"#BROADCAST_ALERT\n"
|
285 |
+
f"**Channel:** {chat.title}\n"
|
286 |
+
f"**Date:** {chat.date}\n"
|
287 |
+
f"**ID:** `{cid}`\n"
|
288 |
+
f"**Username:** <spoiler>{chat.username if chat else None}</spoiler>\n"
|
289 |
+
f"**Access hash:** {chat.access_hash}\n",
|
290 |
+
disable_web_page_preview=True,
|
291 |
+
reply_markup=InlineKeyboardMarkup(
|
292 |
+
[[
|
293 |
+
InlineKeyboardButton(
|
294 |
+
"View Channel",
|
295 |
+
url=f"https://t.me/c/{cid}/-1"
|
296 |
)
|
297 |
]]
|
298 |
)
|