update
Browse files- chatbot/plugins/chat.py +6 -0
chatbot/plugins/chat.py
CHANGED
@@ -320,6 +320,10 @@ async def inline_search(client: Client, inline_query: InlineQuery):
|
|
320 |
@Client.on_callback_query(filters.regex("^deeps_(on|off)_([a-f0-9]{8})$"))
|
321 |
async def deepsearchmode(client, callback):
|
322 |
user_id = callback.from_user.id
|
|
|
|
|
|
|
|
|
323 |
mode, uuidstr = callback.matches[0].groups()
|
324 |
try:
|
325 |
if mode not in ("on", "off"):
|
@@ -892,6 +896,7 @@ async def blacklist_user(c, m):
|
|
892 |
await c.send_message(
|
893 |
getuser,
|
894 |
"⚠️ Pengguna telah dibekukan selama 30 hari.\n"
|
|
|
895 |
f"🕒 Expire: `{unfreeze_at.strftime('%Y-%m-%d %H:%M')}`",
|
896 |
reply_markup=InlineKeyboardMarkup([[
|
897 |
InlineKeyboardButton("⏳ Understood", callback_data="closedd")
|
@@ -899,6 +904,7 @@ async def blacklist_user(c, m):
|
|
899 |
)
|
900 |
await m.reply_text(
|
901 |
"⚠️ Pengguna telah dibekukan selama 30 hari.\n"
|
|
|
902 |
f"🕒 Expire: `{unfreeze_at.strftime('%Y-%m-%d %H:%M')}`",
|
903 |
reply_markup=InlineKeyboardMarkup([[
|
904 |
InlineKeyboardButton("⏳ Understood", callback_data="closedd")
|
|
|
320 |
@Client.on_callback_query(filters.regex("^deeps_(on|off)_([a-f0-9]{8})$"))
|
321 |
async def deepsearchmode(client, callback):
|
322 |
user_id = callback.from_user.id
|
323 |
+
user_bl = await db.user_blacklists.find_one({"user_id": user_id})
|
324 |
+
if user_bl and user_bl.get("is_frozen", False) and user_id not in [6477856957]:
|
325 |
+
await callback.answer("Sorry your account is frozen", True)
|
326 |
+
return
|
327 |
mode, uuidstr = callback.matches[0].groups()
|
328 |
try:
|
329 |
if mode not in ("on", "off"):
|
|
|
896 |
await c.send_message(
|
897 |
getuser,
|
898 |
"⚠️ Pengguna telah dibekukan selama 30 hari.\n"
|
899 |
+
f"⚠️ UserID: `{getuser}`.\n"
|
900 |
f"🕒 Expire: `{unfreeze_at.strftime('%Y-%m-%d %H:%M')}`",
|
901 |
reply_markup=InlineKeyboardMarkup([[
|
902 |
InlineKeyboardButton("⏳ Understood", callback_data="closedd")
|
|
|
904 |
)
|
905 |
await m.reply_text(
|
906 |
"⚠️ Pengguna telah dibekukan selama 30 hari.\n"
|
907 |
+
f"⚠️ UserID: `{getuser}`.\n"
|
908 |
f"🕒 Expire: `{unfreeze_at.strftime('%Y-%m-%d %H:%M')}`",
|
909 |
reply_markup=InlineKeyboardMarkup([[
|
910 |
InlineKeyboardButton("⏳ Understood", callback_data="closedd")
|