Murtaza ΨΉΩΫ commited on
Commit Β·
f8ee2db
1
Parent(s): 47d82b3
Implement Stealth Gatling anti-flood engine, settings toggle, and auto-purge on claimed/occupied handles
Browse files- bot/checker.py +39 -10
- bot/database.py +2 -1
- bot/handlers.py +17 -4
- bot/scheduler.py +148 -64
- bot/sniper.py +33 -16
- bot/state.py +2 -2
- bot/ui/keyboards.py +5 -0
- bot/ui/rich_views.py +5 -0
- utils/anti_ban.py +5 -1
bot/checker.py
CHANGED
|
@@ -31,7 +31,6 @@ async def check_username(username: str, acc) -> str:
|
|
| 31 |
acc.hour_start_time = now
|
| 32 |
acc.checks_this_hour = 0
|
| 33 |
|
| 34 |
-
acc.checks_this_hour += 1
|
| 35 |
result = await acc.client.invoke(functions.account.CheckUsername(username=username))
|
| 36 |
return "AVAILABLE" if result else "TAKEN"
|
| 37 |
|
|
@@ -97,11 +96,21 @@ async def trigger_burst(username: str) -> str:
|
|
| 97 |
if success is True:
|
| 98 |
log(f"β
Burst sequence finished. @{username} secured.")
|
| 99 |
result_status = "CLAIMED"
|
|
|
|
|
|
|
| 100 |
break
|
| 101 |
elif success == "OCCUPIED":
|
|
|
|
| 102 |
result_status = "OCCUPIED"
|
|
|
|
|
|
|
|
|
|
| 103 |
elif success == "INVALID":
|
|
|
|
| 104 |
result_status = "INVALID"
|
|
|
|
|
|
|
|
|
|
| 105 |
|
| 106 |
return result_status
|
| 107 |
|
|
@@ -110,7 +119,7 @@ async def autoclaim_flow(username: str, acc):
|
|
| 110 |
lock = get_acc_lock(acc.index)
|
| 111 |
|
| 112 |
async with lock:
|
| 113 |
-
if username in state.get("unavailable_set", set()):
|
| 114 |
return True
|
| 115 |
|
| 116 |
try:
|
|
@@ -131,7 +140,7 @@ async def autoclaim_flow(username: str, acc):
|
|
| 131 |
|
| 132 |
if priority == "channel_first":
|
| 133 |
success = await try_claim_channel(username, acc)
|
| 134 |
-
if not success:
|
| 135 |
if has_profile_username:
|
| 136 |
log(f"β οΈ Skipped account claim for @{username} to prevent overwriting @{display_name}.")
|
| 137 |
elif success != "OCCUPIED" and success != "INVALID":
|
|
@@ -139,17 +148,27 @@ async def autoclaim_flow(username: str, acc):
|
|
| 139 |
else:
|
| 140 |
if not has_profile_username:
|
| 141 |
success = await try_claim_account(username, acc)
|
| 142 |
-
if not success and success != "OCCUPIED" and success != "INVALID":
|
| 143 |
success = await try_claim_channel(username, acc)
|
| 144 |
else:
|
| 145 |
log(f"β οΈ Skipped account claim for @{username} to prevent overwriting @{display_name}.")
|
| 146 |
success = await try_claim_channel(username, acc)
|
| 147 |
|
| 148 |
if success is True:
|
| 149 |
-
|
|
|
|
| 150 |
state["total_claimed"] += 1
|
| 151 |
-
await db.add_unavailable(
|
| 152 |
await db.save_setting("total_claimed", state["total_claimed"])
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 153 |
return True
|
| 154 |
|
| 155 |
return success
|
|
@@ -239,6 +258,11 @@ async def try_claim_channel(username: str, acc):
|
|
| 239 |
await alert_admin(text, markup=InlineKeyboardMarkup(buttons))
|
| 240 |
return True
|
| 241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 242 |
except Exception as e:
|
| 243 |
err_str = str(e).upper()
|
| 244 |
log(f"β Channel autoclaim failed for @{username} on Acc {acc.index}: {e}")
|
|
@@ -251,8 +275,8 @@ async def try_claim_channel(username: str, acc):
|
|
| 251 |
|
| 252 |
if "USERNAME_OCCUPIED" in err_str: return "OCCUPIED"
|
| 253 |
if "USERNAME_INVALID" in err_str:
|
| 254 |
-
state["unavailable_set"].add(username)
|
| 255 |
-
await db.add_unavailable(username)
|
| 256 |
return "INVALID"
|
| 257 |
|
| 258 |
return False
|
|
@@ -274,6 +298,11 @@ async def try_claim_account(username: str, acc):
|
|
| 274 |
await alert_admin(text, markup=InlineKeyboardMarkup(buttons))
|
| 275 |
return True
|
| 276 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 277 |
except Exception as e:
|
| 278 |
err_str = str(e).upper()
|
| 279 |
log(f"β Account autoclaim failed for @{username} on Acc {acc.index}: {e}")
|
|
@@ -283,8 +312,8 @@ async def try_claim_account(username: str, acc):
|
|
| 283 |
|
| 284 |
if "USERNAME_OCCUPIED" in err_str: return "OCCUPIED"
|
| 285 |
if "USERNAME_INVALID" in err_str:
|
| 286 |
-
state["unavailable_set"].add(username)
|
| 287 |
-
await db.add_unavailable(username)
|
| 288 |
return "INVALID"
|
| 289 |
|
| 290 |
return False
|
|
|
|
| 31 |
acc.hour_start_time = now
|
| 32 |
acc.checks_this_hour = 0
|
| 33 |
|
|
|
|
| 34 |
result = await acc.client.invoke(functions.account.CheckUsername(username=username))
|
| 35 |
return "AVAILABLE" if result else "TAKEN"
|
| 36 |
|
|
|
|
| 96 |
if success is True:
|
| 97 |
log(f"β
Burst sequence finished. @{username} secured.")
|
| 98 |
result_status = "CLAIMED"
|
| 99 |
+
for t in tasks:
|
| 100 |
+
if not t.done(): t.cancel()
|
| 101 |
break
|
| 102 |
elif success == "OCCUPIED":
|
| 103 |
+
log(f"π Burst detected @{username} is OCCUPIED. Cancelling remaining tasks.")
|
| 104 |
result_status = "OCCUPIED"
|
| 105 |
+
for t in tasks:
|
| 106 |
+
if not t.done(): t.cancel()
|
| 107 |
+
break
|
| 108 |
elif success == "INVALID":
|
| 109 |
+
log(f"π« Burst detected @{username} is INVALID. Cancelling remaining tasks.")
|
| 110 |
result_status = "INVALID"
|
| 111 |
+
for t in tasks:
|
| 112 |
+
if not t.done(): t.cancel()
|
| 113 |
+
break
|
| 114 |
|
| 115 |
return result_status
|
| 116 |
|
|
|
|
| 119 |
lock = get_acc_lock(acc.index)
|
| 120 |
|
| 121 |
async with lock:
|
| 122 |
+
if username.lower() in state.get("unavailable_set", set()):
|
| 123 |
return True
|
| 124 |
|
| 125 |
try:
|
|
|
|
| 140 |
|
| 141 |
if priority == "channel_first":
|
| 142 |
success = await try_claim_channel(username, acc)
|
| 143 |
+
if not success and success != "FLOOD":
|
| 144 |
if has_profile_username:
|
| 145 |
log(f"β οΈ Skipped account claim for @{username} to prevent overwriting @{display_name}.")
|
| 146 |
elif success != "OCCUPIED" and success != "INVALID":
|
|
|
|
| 148 |
else:
|
| 149 |
if not has_profile_username:
|
| 150 |
success = await try_claim_account(username, acc)
|
| 151 |
+
if not success and success != "FLOOD" and success != "OCCUPIED" and success != "INVALID":
|
| 152 |
success = await try_claim_channel(username, acc)
|
| 153 |
else:
|
| 154 |
log(f"β οΈ Skipped account claim for @{username} to prevent overwriting @{display_name}.")
|
| 155 |
success = await try_claim_channel(username, acc)
|
| 156 |
|
| 157 |
if success is True:
|
| 158 |
+
uname = username.lower()
|
| 159 |
+
state["unavailable_set"].add(uname)
|
| 160 |
state["total_claimed"] += 1
|
| 161 |
+
await db.add_unavailable(uname)
|
| 162 |
await db.save_setting("total_claimed", state["total_claimed"])
|
| 163 |
+
try:
|
| 164 |
+
from bot.handlers import purge_target_from_queues
|
| 165 |
+
await purge_target_from_queues(uname)
|
| 166 |
+
except Exception: pass
|
| 167 |
+
try:
|
| 168 |
+
from bot.scheduler import ACTIVE_CAMPER_TASKS
|
| 169 |
+
if uname in ACTIVE_CAMPER_TASKS and not ACTIVE_CAMPER_TASKS[uname].done():
|
| 170 |
+
ACTIVE_CAMPER_TASKS[uname].cancel()
|
| 171 |
+
except Exception: pass
|
| 172 |
return True
|
| 173 |
|
| 174 |
return success
|
|
|
|
| 258 |
await alert_admin(text, markup=InlineKeyboardMarkup(buttons))
|
| 259 |
return True
|
| 260 |
|
| 261 |
+
except FloodWait as e:
|
| 262 |
+
log(f"β οΈ Account {acc.index} hit FloodWait on channel claim for {e.value}s.")
|
| 263 |
+
acc.status = "cooling"
|
| 264 |
+
acc.cooldown_until = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(seconds=e.value)
|
| 265 |
+
return "FLOOD"
|
| 266 |
except Exception as e:
|
| 267 |
err_str = str(e).upper()
|
| 268 |
log(f"β Channel autoclaim failed for @{username} on Acc {acc.index}: {e}")
|
|
|
|
| 275 |
|
| 276 |
if "USERNAME_OCCUPIED" in err_str: return "OCCUPIED"
|
| 277 |
if "USERNAME_INVALID" in err_str:
|
| 278 |
+
state["unavailable_set"].add(username.lower())
|
| 279 |
+
await db.add_unavailable(username.lower())
|
| 280 |
return "INVALID"
|
| 281 |
|
| 282 |
return False
|
|
|
|
| 298 |
await alert_admin(text, markup=InlineKeyboardMarkup(buttons))
|
| 299 |
return True
|
| 300 |
|
| 301 |
+
except FloodWait as e:
|
| 302 |
+
log(f"β οΈ Account {acc.index} hit FloodWait on account claim for {e.value}s.")
|
| 303 |
+
acc.status = "cooling"
|
| 304 |
+
acc.cooldown_until = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(seconds=e.value)
|
| 305 |
+
return "FLOOD"
|
| 306 |
except Exception as e:
|
| 307 |
err_str = str(e).upper()
|
| 308 |
log(f"β Account autoclaim failed for @{username} on Acc {acc.index}: {e}")
|
|
|
|
| 312 |
|
| 313 |
if "USERNAME_OCCUPIED" in err_str: return "OCCUPIED"
|
| 314 |
if "USERNAME_INVALID" in err_str:
|
| 315 |
+
state["unavailable_set"].add(username.lower())
|
| 316 |
+
await db.add_unavailable(username.lower())
|
| 317 |
return "INVALID"
|
| 318 |
|
| 319 |
return False
|
bot/database.py
CHANGED
|
@@ -36,7 +36,8 @@ class Database:
|
|
| 36 |
"channel_claim_priority", "preferred_channel_account",
|
| 37 |
"watchdog_poll_interval", "fragment_sniping_active",
|
| 38 |
"fragment_autoclaim_on", "fragment_workers", "custom_claim_message",
|
| 39 |
-
"mute_minor_alerts", "smart_menu_on", "camper_interval", "custom_claim_gif", "custom_success_text"
|
|
|
|
| 40 |
]
|
| 41 |
for key in keys:
|
| 42 |
if key in doc:
|
|
|
|
| 36 |
"channel_claim_priority", "preferred_channel_account",
|
| 37 |
"watchdog_poll_interval", "fragment_sniping_active",
|
| 38 |
"fragment_autoclaim_on", "fragment_workers", "custom_claim_message",
|
| 39 |
+
"mute_minor_alerts", "smart_menu_on", "camper_interval", "custom_claim_gif", "custom_success_text",
|
| 40 |
+
"stealth_gatling_on"
|
| 41 |
]
|
| 42 |
for key in keys:
|
| 43 |
if key in doc:
|
bot/handlers.py
CHANGED
|
@@ -960,6 +960,11 @@ async def callback_router(client, callback_query):
|
|
| 960 |
await db.save_setting("fragment_autoclaim_on", state["fragment_autoclaim_on"])
|
| 961 |
await edit_rich_message(client, callback_query.message, view_rich_fragment_settings())
|
| 962 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 963 |
elif data.startswith("frag_set|"):
|
| 964 |
_, key, val_str = data.split("|")
|
| 965 |
val = int(val_str)
|
|
@@ -1115,10 +1120,14 @@ async def callback_router(client, callback_query):
|
|
| 1115 |
from pyrogram.raw import functions
|
| 1116 |
try:
|
| 1117 |
await account.client.invoke(functions.account.UpdateUsername(username=username))
|
| 1118 |
-
state["unavailable_set"].add(username)
|
| 1119 |
state["total_claimed"] = state.get("total_claimed", 0) + 1
|
| 1120 |
-
await db.add_unavailable(username)
|
| 1121 |
await db.save_setting("total_claimed", state["total_claimed"])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1122 |
await callback_query.message.edit_text(f"β
Claimed <code>@{username}</code> on <b>Account {acc_idx} (****{account.phone[-4:]})</b>!", parse_mode=enums.ParseMode.HTML)
|
| 1123 |
except Exception as e:
|
| 1124 |
await callback_query.message.edit_text(f"β Failed: <code>{e}</code>", parse_mode=enums.ParseMode.HTML)
|
|
@@ -1132,10 +1141,14 @@ async def callback_router(client, callback_query):
|
|
| 1132 |
from bot.checker import try_claim_channel
|
| 1133 |
res = await try_claim_channel(username, account)
|
| 1134 |
if res is True:
|
| 1135 |
-
state["unavailable_set"].add(username)
|
| 1136 |
state["total_claimed"] = state.get("total_claimed", 0) + 1
|
| 1137 |
-
await db.add_unavailable(username)
|
| 1138 |
await db.save_setting("total_claimed", state["total_claimed"])
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1139 |
await callback_query.message.edit_text(f"β
Claimed <code>@{username}</code> on channel via <b>Account {acc_idx} (****{account.phone[-4:]})</b>!", parse_mode=enums.ParseMode.HTML)
|
| 1140 |
else:
|
| 1141 |
await callback_query.message.edit_text(f"β Failed to claim channel for <code>@{username}</code>.", parse_mode=enums.ParseMode.HTML)
|
|
|
|
| 960 |
await db.save_setting("fragment_autoclaim_on", state["fragment_autoclaim_on"])
|
| 961 |
await edit_rich_message(client, callback_query.message, view_rich_fragment_settings())
|
| 962 |
|
| 963 |
+
elif data == "toggle_stealth_gatling":
|
| 964 |
+
state["stealth_gatling_on"] = not state.get("stealth_gatling_on", True)
|
| 965 |
+
await db.save_setting("stealth_gatling_on", state["stealth_gatling_on"])
|
| 966 |
+
await edit_rich_message(client, callback_query.message, view_rich_fragment_settings())
|
| 967 |
+
|
| 968 |
elif data.startswith("frag_set|"):
|
| 969 |
_, key, val_str = data.split("|")
|
| 970 |
val = int(val_str)
|
|
|
|
| 1120 |
from pyrogram.raw import functions
|
| 1121 |
try:
|
| 1122 |
await account.client.invoke(functions.account.UpdateUsername(username=username))
|
| 1123 |
+
state["unavailable_set"].add(username.lower())
|
| 1124 |
state["total_claimed"] = state.get("total_claimed", 0) + 1
|
| 1125 |
+
await db.add_unavailable(username.lower())
|
| 1126 |
await db.save_setting("total_claimed", state["total_claimed"])
|
| 1127 |
+
await purge_target_from_queues(username.lower())
|
| 1128 |
+
from bot.scheduler import ACTIVE_CAMPER_TASKS
|
| 1129 |
+
if username.lower() in ACTIVE_CAMPER_TASKS and not ACTIVE_CAMPER_TASKS[username.lower()].done():
|
| 1130 |
+
ACTIVE_CAMPER_TASKS[username.lower()].cancel()
|
| 1131 |
await callback_query.message.edit_text(f"β
Claimed <code>@{username}</code> on <b>Account {acc_idx} (****{account.phone[-4:]})</b>!", parse_mode=enums.ParseMode.HTML)
|
| 1132 |
except Exception as e:
|
| 1133 |
await callback_query.message.edit_text(f"β Failed: <code>{e}</code>", parse_mode=enums.ParseMode.HTML)
|
|
|
|
| 1141 |
from bot.checker import try_claim_channel
|
| 1142 |
res = await try_claim_channel(username, account)
|
| 1143 |
if res is True:
|
| 1144 |
+
state["unavailable_set"].add(username.lower())
|
| 1145 |
state["total_claimed"] = state.get("total_claimed", 0) + 1
|
| 1146 |
+
await db.add_unavailable(username.lower())
|
| 1147 |
await db.save_setting("total_claimed", state["total_claimed"])
|
| 1148 |
+
await purge_target_from_queues(username.lower())
|
| 1149 |
+
from bot.scheduler import ACTIVE_CAMPER_TASKS
|
| 1150 |
+
if username.lower() in ACTIVE_CAMPER_TASKS and not ACTIVE_CAMPER_TASKS[username.lower()].done():
|
| 1151 |
+
ACTIVE_CAMPER_TASKS[username.lower()].cancel()
|
| 1152 |
await callback_query.message.edit_text(f"β
Claimed <code>@{username}</code> on channel via <b>Account {acc_idx} (****{account.phone[-4:]})</b>!", parse_mode=enums.ParseMode.HTML)
|
| 1153 |
else:
|
| 1154 |
await callback_query.message.edit_text(f"β Failed to claim channel for <code>@{username}</code>.", parse_mode=enums.ParseMode.HTML)
|
bot/scheduler.py
CHANGED
|
@@ -200,30 +200,34 @@ async def camper_loop(target: str):
|
|
| 200 |
except MessageNotModified: pass
|
| 201 |
except Exception: pass
|
| 202 |
|
| 203 |
-
|
| 204 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
try:
|
| 206 |
-
acc.checks_this_hour += 1
|
| 207 |
await asyncio.wait_for(acc.client.resolve_peer(target), timeout=8.0)
|
| 208 |
-
|
| 209 |
-
|
| 210 |
-
|
| 211 |
-
|
| 212 |
-
|
| 213 |
-
|
| 214 |
-
|
| 215 |
-
|
| 216 |
-
|
| 217 |
-
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
|
| 225 |
-
|
| 226 |
-
|
|
|
|
| 227 |
except asyncio.TimeoutError:
|
| 228 |
log(f"π°οΈ Socket timeout on resolve for Account #{acc.index}. Initiating Dynamic Hot-Swap...")
|
| 229 |
if acc.proxy:
|
|
@@ -239,46 +243,114 @@ async def camper_loop(target: str):
|
|
| 239 |
continue
|
| 240 |
except Exception as e:
|
| 241 |
err_str = str(e).upper()
|
| 242 |
-
if "
|
| 243 |
-
elif "FROZEN" in err_str:
|
| 244 |
acc.status = "frozen"
|
| 245 |
continue
|
| 246 |
-
|
| 247 |
-
|
| 248 |
-
|
| 249 |
-
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
|
| 256 |
-
|
| 257 |
-
|
| 258 |
-
|
| 259 |
-
|
| 260 |
-
|
| 261 |
-
|
| 262 |
-
|
| 263 |
-
|
| 264 |
-
|
| 265 |
-
|
| 266 |
-
|
| 267 |
-
|
| 268 |
-
|
| 269 |
-
|
| 270 |
-
|
| 271 |
-
|
| 272 |
-
|
| 273 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 274 |
state["watchdog_attempts"][target] = req_count
|
| 275 |
|
| 276 |
if time.time() > expiration_time:
|
| 277 |
log(f"ποΈ Camper Expired: @{target} camped for 5 hours without dropping. Giving up.")
|
| 278 |
-
|
| 279 |
-
_bg(
|
| 280 |
-
|
| 281 |
-
state.get(dict_name, {}).pop(target, None)
|
| 282 |
break
|
| 283 |
|
| 284 |
finally:
|
|
@@ -286,6 +358,9 @@ async def camper_loop(target: str):
|
|
| 286 |
if proxy_host:
|
| 287 |
state["allocated_proxies"].discard(proxy_host)
|
| 288 |
|
|
|
|
|
|
|
|
|
|
| 289 |
elapsed_time = time.time() - start_time
|
| 290 |
if elapsed_time <= 200:
|
| 291 |
calculated_interval = max(0.2, (float(user_defined_base) * 2) + random.uniform(-0.2, 0.4))
|
|
@@ -298,7 +373,7 @@ async def camper_loop(target: str):
|
|
| 298 |
if state.get("cancel_burst"):
|
| 299 |
break
|
| 300 |
|
| 301 |
-
if state.get("cancel_burst"):
|
| 302 |
break
|
| 303 |
|
| 304 |
finally:
|
|
@@ -321,6 +396,12 @@ async def watchdog_cycle():
|
|
| 321 |
ACTIVE_CAMPER_TASKS[target] = asyncio.create_task(camper_loop(target))
|
| 322 |
continue
|
| 323 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 324 |
acc = pick_account(state["account_pool"])
|
| 325 |
if not acc: return
|
| 326 |
|
|
@@ -340,13 +421,16 @@ async def watchdog_cycle():
|
|
| 340 |
log(f"β οΈ Watchdog Burst Error for @{target}: {e}")
|
| 341 |
burst_result = "FAILED"
|
| 342 |
|
| 343 |
-
if burst_result in ["CLAIMED", "INVALID"]:
|
| 344 |
-
state["unavailable_set"].add(target)
|
| 345 |
-
_bg(db.add_unavailable(target))
|
| 346 |
-
|
| 347 |
-
_bg(
|
| 348 |
-
|
| 349 |
-
|
|
|
|
|
|
|
|
|
|
| 350 |
except asyncio.TimeoutError:
|
| 351 |
log(f"π°οΈ Watchdog check timed out for @{target} on Account #{acc.index}. Postponing.")
|
| 352 |
|
|
|
|
| 200 |
except MessageNotModified: pass
|
| 201 |
except Exception: pass
|
| 202 |
|
| 203 |
+
is_stealth = state.get("stealth_gatling_on", True)
|
| 204 |
+
claimed_or_terminated = False
|
| 205 |
+
|
| 206 |
+
if is_stealth:
|
| 207 |
+
# β‘ STEALTH GATLING: Probe availability via non-mutating check
|
| 208 |
+
# Never fire UpdateUsername unless the username is confirmed free/dropped!
|
| 209 |
try:
|
|
|
|
| 210 |
await asyncio.wait_for(acc.client.resolve_peer(target), timeout=8.0)
|
| 211 |
+
# If resolve_peer succeeds, the handle is STILL OCCUPIED!
|
| 212 |
+
# Every 3 probes, verify if it was taken by external network or sold
|
| 213 |
+
if req_count % 3 == 0:
|
| 214 |
+
log(f"π VERIFIED TAKEN: @{target} is actively owned by someone else. Stopping Gatling-Gun.")
|
| 215 |
+
state["unavailable_set"].add(target.lower())
|
| 216 |
+
_bg(db.add_unavailable(target.lower()))
|
| 217 |
+
from bot.handlers import purge_target_from_queues
|
| 218 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 219 |
+
|
| 220 |
+
lost_text = (
|
| 221 |
+
f"<b>GATLING-GUN TERMINATED</b>\n\n"
|
| 222 |
+
f"<b>Target:</b> @{target}\n"
|
| 223 |
+
f"<b>Status:</b> CLAIMED / TAKEN (Owned by external network)\n"
|
| 224 |
+
f"<b>Database:</b> Successfully purged from tracking storage"
|
| 225 |
+
)
|
| 226 |
+
for admin, msg_id in ui_msgs.items():
|
| 227 |
+
try: _bg(bot.edit_message_text(chat_id=admin, message_id=msg_id, text=lost_text, parse_mode=enums.ParseMode.HTML, reply_markup=None))
|
| 228 |
+
except Exception: pass
|
| 229 |
+
claimed_or_terminated = True
|
| 230 |
+
break
|
| 231 |
except asyncio.TimeoutError:
|
| 232 |
log(f"π°οΈ Socket timeout on resolve for Account #{acc.index}. Initiating Dynamic Hot-Swap...")
|
| 233 |
if acc.proxy:
|
|
|
|
| 243 |
continue
|
| 244 |
except Exception as e:
|
| 245 |
err_str = str(e).upper()
|
| 246 |
+
if "FROZEN" in err_str:
|
|
|
|
| 247 |
acc.status = "frozen"
|
| 248 |
continue
|
| 249 |
+
elif "USERNAME_NOT_OCCUPIED" in err_str:
|
| 250 |
+
# π₯ TARGET HAS DROPPED! FIRE CLAIM NOW!
|
| 251 |
+
log(f"π― STEALTH GATLING DETECTED DROP: @{target} is UNCLAIMED! Firing claim on Account #{acc.index}...")
|
| 252 |
+
try:
|
| 253 |
+
success = await asyncio.wait_for(autoclaim_flow(target, acc), timeout=12.0)
|
| 254 |
+
if success == True:
|
| 255 |
+
log(f"π― STEALTH GATLING SUCCESS! @{target} secured on request {req_count}!")
|
| 256 |
+
from bot.handlers import purge_target_from_queues
|
| 257 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 258 |
+
final_text = (
|
| 259 |
+
f"<b>GATLING-GUN SUCCESS</b>\n\n"
|
| 260 |
+
f"<b>Target:</b> @{target}\n"
|
| 261 |
+
f"<b>Status:</b> Secured successfully by Account {acc.index}\n"
|
| 262 |
+
f"<b>Total Load:</b> {req_count} operations executed"
|
| 263 |
+
)
|
| 264 |
+
for admin, msg_id in ui_msgs.items():
|
| 265 |
+
try: _bg(bot.edit_message_text(chat_id=admin, message_id=msg_id, text=final_text, parse_mode=enums.ParseMode.HTML, reply_markup=None))
|
| 266 |
+
except Exception: pass
|
| 267 |
+
claimed_or_terminated = True
|
| 268 |
+
break
|
| 269 |
+
elif success == "OCCUPIED":
|
| 270 |
+
log(f"π @{target} was claimed by another party during drop. Stopping Gatling-Gun.")
|
| 271 |
+
state["unavailable_set"].add(target.lower())
|
| 272 |
+
_bg(db.add_unavailable(target.lower()))
|
| 273 |
+
from bot.handlers import purge_target_from_queues
|
| 274 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 275 |
+
claimed_or_terminated = True
|
| 276 |
+
break
|
| 277 |
+
except Exception as claim_err:
|
| 278 |
+
log(f"β οΈ Claim execution error on Account #{acc.index}: {claim_err}")
|
| 279 |
+
else:
|
| 280 |
+
# Direct / Legacy Gatling mode
|
| 281 |
+
if req_count % 3 == 0:
|
| 282 |
+
try:
|
| 283 |
+
acc.checks_this_hour += 1
|
| 284 |
+
await asyncio.wait_for(acc.client.resolve_peer(target), timeout=8.0)
|
| 285 |
+
log(f"π VERIFIED TAKEN: @{target} is actively owned by someone else. Stopping Gatling-Gun.")
|
| 286 |
+
state["unavailable_set"].add(target.lower())
|
| 287 |
+
_bg(db.add_unavailable(target.lower()))
|
| 288 |
+
from bot.handlers import purge_target_from_queues
|
| 289 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 290 |
+
lost_text = (
|
| 291 |
+
f"<b>GATLING-GUN TERMINATED</b>\n\n"
|
| 292 |
+
f"<b>Target:</b> @{target}\n"
|
| 293 |
+
f"<b>Status:</b> CLAIMED / BANNED (Taken by external network)\n"
|
| 294 |
+
f"<b>Database:</b> Successfully purged from tracking storage"
|
| 295 |
+
)
|
| 296 |
+
for admin, msg_id in ui_msgs.items():
|
| 297 |
+
try: _bg(bot.edit_message_text(chat_id=admin, message_id=msg_id, text=lost_text, parse_mode=enums.ParseMode.HTML, reply_markup=None))
|
| 298 |
+
except Exception: pass
|
| 299 |
+
claimed_or_terminated = True
|
| 300 |
+
break
|
| 301 |
+
except asyncio.TimeoutError:
|
| 302 |
+
if acc.proxy:
|
| 303 |
+
from bot.proxy_manager import proxy_mgr
|
| 304 |
+
new_route = proxy_mgr.handle_runtime_routing_fault(acc.proxy["hostname"])
|
| 305 |
+
acc.proxy = new_route
|
| 306 |
+
if hasattr(acc.client, "proxy"): acc.client.proxy = new_route
|
| 307 |
+
continue
|
| 308 |
+
except FloodWait as e:
|
| 309 |
+
acc.status = "cooling"
|
| 310 |
+
acc.cooldown_until = datetime.datetime.now(datetime.timezone.utc) + datetime.timedelta(seconds=e.value)
|
| 311 |
+
continue
|
| 312 |
+
except Exception as e:
|
| 313 |
+
if "FROZEN" in str(e).upper():
|
| 314 |
+
acc.status = "frozen"
|
| 315 |
+
continue
|
| 316 |
+
|
| 317 |
+
try:
|
| 318 |
+
success = await asyncio.wait_for(autoclaim_flow(target, acc), timeout=12.0)
|
| 319 |
+
if success == True:
|
| 320 |
+
log(f"π― CAMPER SUCCESS! @{target} secured via Gatling-Gun on request {req_count}!")
|
| 321 |
+
from bot.handlers import purge_target_from_queues
|
| 322 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 323 |
+
final_text = (
|
| 324 |
+
f"<b>GATLING-GUN SUCCESS</b>\n\n"
|
| 325 |
+
f"<b>Target:</b> @{target}\n"
|
| 326 |
+
f"<b>Status:</b> Secured successfully by Account {acc.index}\n"
|
| 327 |
+
f"<b>Total Load:</b> {req_count} operations executed"
|
| 328 |
+
)
|
| 329 |
+
for admin, msg_id in ui_msgs.items():
|
| 330 |
+
try: _bg(bot.edit_message_text(chat_id=admin, message_id=msg_id, text=final_text, parse_mode=enums.ParseMode.HTML, reply_markup=None))
|
| 331 |
+
except Exception: pass
|
| 332 |
+
claimed_or_terminated = True
|
| 333 |
+
break
|
| 334 |
+
elif success == "OCCUPIED":
|
| 335 |
+
log(f"π VERIFIED TAKEN: @{target} was claimed by someone else. Stopping Gatling-Gun.")
|
| 336 |
+
state["unavailable_set"].add(target.lower())
|
| 337 |
+
_bg(db.add_unavailable(target.lower()))
|
| 338 |
+
from bot.handlers import purge_target_from_queues
|
| 339 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 340 |
+
claimed_or_terminated = True
|
| 341 |
+
break
|
| 342 |
+
except asyncio.TimeoutError:
|
| 343 |
+
continue
|
| 344 |
+
except Exception as e:
|
| 345 |
+
log(f"β οΈ Camper claim error: {e}")
|
| 346 |
+
|
| 347 |
state["watchdog_attempts"][target] = req_count
|
| 348 |
|
| 349 |
if time.time() > expiration_time:
|
| 350 |
log(f"ποΈ Camper Expired: @{target} camped for 5 hours without dropping. Giving up.")
|
| 351 |
+
from bot.handlers import purge_target_from_queues
|
| 352 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 353 |
+
claimed_or_terminated = True
|
|
|
|
| 354 |
break
|
| 355 |
|
| 356 |
finally:
|
|
|
|
| 358 |
if proxy_host:
|
| 359 |
state["allocated_proxies"].discard(proxy_host)
|
| 360 |
|
| 361 |
+
if claimed_or_terminated:
|
| 362 |
+
break
|
| 363 |
+
|
| 364 |
elapsed_time = time.time() - start_time
|
| 365 |
if elapsed_time <= 200:
|
| 366 |
calculated_interval = max(0.2, (float(user_defined_base) * 2) + random.uniform(-0.2, 0.4))
|
|
|
|
| 373 |
if state.get("cancel_burst"):
|
| 374 |
break
|
| 375 |
|
| 376 |
+
if claimed_or_terminated or state.get("cancel_burst"):
|
| 377 |
break
|
| 378 |
|
| 379 |
finally:
|
|
|
|
| 396 |
ACTIVE_CAMPER_TASKS[target] = asyncio.create_task(camper_loop(target))
|
| 397 |
continue
|
| 398 |
|
| 399 |
+
# Respect watchdog_poll_interval for regular watchlist targets
|
| 400 |
+
poll_int_sec = float(state.get("watchdog_poll_interval", 5)) * 60
|
| 401 |
+
last_chk = state.get("watchdog_last_checked", {}).get(target)
|
| 402 |
+
if last_chk and (now - last_chk).total_seconds() < poll_int_sec:
|
| 403 |
+
continue
|
| 404 |
+
|
| 405 |
acc = pick_account(state["account_pool"])
|
| 406 |
if not acc: return
|
| 407 |
|
|
|
|
| 421 |
log(f"β οΈ Watchdog Burst Error for @{target}: {e}")
|
| 422 |
burst_result = "FAILED"
|
| 423 |
|
| 424 |
+
if burst_result in ["CLAIMED", "OCCUPIED", "INVALID"]:
|
| 425 |
+
state["unavailable_set"].add(target.lower())
|
| 426 |
+
_bg(db.add_unavailable(target.lower()))
|
| 427 |
+
from bot.handlers import purge_target_from_queues
|
| 428 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 429 |
+
elif status == "INVALID":
|
| 430 |
+
state["unavailable_set"].add(target.lower())
|
| 431 |
+
_bg(db.add_unavailable(target.lower()))
|
| 432 |
+
from bot.handlers import purge_target_from_queues
|
| 433 |
+
_bg(purge_target_from_queues(target.lower()))
|
| 434 |
except asyncio.TimeoutError:
|
| 435 |
log(f"π°οΈ Watchdog check timed out for @{target} on Account #{acc.index}. Postponing.")
|
| 436 |
|
bot/sniper.py
CHANGED
|
@@ -182,26 +182,43 @@ class SniperFleet:
|
|
| 182 |
await asyncio.sleep(5)
|
| 183 |
continue
|
| 184 |
|
| 185 |
-
if burst_result
|
| 186 |
-
log(f"
|
| 187 |
-
|
| 188 |
-
asyncio.create_task(update_snipe_status(username, "Pending Release (Gatling-Gun Engaged)"))
|
| 189 |
-
|
| 190 |
-
if username not in state.get("watchdog_queue", set()):
|
| 191 |
-
state["watchdog_queue"].add(username)
|
| 192 |
-
if "watch_submitters" not in state: state["watch_submitters"] = {}
|
| 193 |
-
state["watch_submitters"][username] = "FRAGMENT_HANDOFF"
|
| 194 |
-
asyncio.create_task(db.add_watchdog(username, "FRAGMENT_HANDOFF"))
|
| 195 |
-
from bot.scheduler import camper_loop, ACTIVE_CAMPER_TASKS
|
| 196 |
-
|
| 197 |
-
if username not in ACTIVE_CAMPER_TASKS or ACTIVE_CAMPER_TASKS[username].done():
|
| 198 |
-
ACTIVE_CAMPER_TASKS[username] = asyncio.create_task(camper_loop(username))
|
| 199 |
-
|
| 200 |
state["fragcheck_queue"].discard(username)
|
| 201 |
asyncio.create_task(db.remove_fragcheck(username))
|
| 202 |
self.carousel.task_done()
|
| 203 |
-
await asyncio.sleep(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
continue
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 205 |
|
| 206 |
self.carousel.put_nowait(username)
|
| 207 |
self.carousel.task_done()
|
|
|
|
| 182 |
await asyncio.sleep(5)
|
| 183 |
continue
|
| 184 |
|
| 185 |
+
if burst_result == "CLAIMED":
|
| 186 |
+
log(f"π @{username} secured! Pruning from Fragment queue.")
|
| 187 |
+
asyncio.create_task(update_snipe_status(username, "SECURED / CLAIMED (Purged from queues)", is_final=True))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 188 |
state["fragcheck_queue"].discard(username)
|
| 189 |
asyncio.create_task(db.remove_fragcheck(username))
|
| 190 |
self.carousel.task_done()
|
| 191 |
+
await asyncio.sleep(2)
|
| 192 |
+
continue
|
| 193 |
+
|
| 194 |
+
if burst_result == "OCCUPIED":
|
| 195 |
+
log(f"π @{username} is OCCUPIED / TAKEN. Pruning from Fragment queue.")
|
| 196 |
+
asyncio.create_task(update_snipe_status(username, "TAKEN / OCCUPIED (Purged from queues)", is_final=True))
|
| 197 |
+
state["fragcheck_queue"].discard(username)
|
| 198 |
+
asyncio.create_task(db.remove_fragcheck(username))
|
| 199 |
+
self.carousel.task_done()
|
| 200 |
+
await asyncio.sleep(2)
|
| 201 |
continue
|
| 202 |
+
|
| 203 |
+
# Target is pending release or burst failed to claim -> Hand off to Gatling-Gun Camper
|
| 204 |
+
log(f"β³ @{username} is pending Telegram release. Engaging Gatling-Gun Camper.")
|
| 205 |
+
asyncio.create_task(update_snipe_status(username, "Pending Release (Gatling-Gun Engaged)"))
|
| 206 |
+
|
| 207 |
+
if username not in state.get("watchdog_queue", set()):
|
| 208 |
+
state["watchdog_queue"].add(username)
|
| 209 |
+
if "watch_submitters" not in state: state["watch_submitters"] = {}
|
| 210 |
+
state["watch_submitters"][username] = "FRAGMENT_HANDOFF"
|
| 211 |
+
asyncio.create_task(db.add_watchdog(username, "FRAGMENT_HANDOFF"))
|
| 212 |
+
from bot.scheduler import camper_loop, ACTIVE_CAMPER_TASKS
|
| 213 |
+
|
| 214 |
+
if username not in ACTIVE_CAMPER_TASKS or ACTIVE_CAMPER_TASKS[username].done():
|
| 215 |
+
ACTIVE_CAMPER_TASKS[username] = asyncio.create_task(camper_loop(username))
|
| 216 |
+
|
| 217 |
+
state["fragcheck_queue"].discard(username)
|
| 218 |
+
asyncio.create_task(db.remove_fragcheck(username))
|
| 219 |
+
self.carousel.task_done()
|
| 220 |
+
await asyncio.sleep(5)
|
| 221 |
+
continue
|
| 222 |
|
| 223 |
self.carousel.put_nowait(username)
|
| 224 |
self.carousel.task_done()
|
bot/state.py
CHANGED
|
@@ -70,8 +70,8 @@ state = {
|
|
| 70 |
"channel_claim_priority": "account_first",
|
| 71 |
"preferred_channel_account": None,
|
| 72 |
"custom_claim_message": "Secured",
|
| 73 |
-
|
| 74 |
"fragment_sniping_active": False,
|
| 75 |
"fragment_autoclaim_on": True,
|
| 76 |
-
"fragment_workers": 40
|
|
|
|
| 77 |
}
|
|
|
|
| 70 |
"channel_claim_priority": "account_first",
|
| 71 |
"preferred_channel_account": None,
|
| 72 |
"custom_claim_message": "Secured",
|
|
|
|
| 73 |
"fragment_sniping_active": False,
|
| 74 |
"fragment_autoclaim_on": True,
|
| 75 |
+
"fragment_workers": 40,
|
| 76 |
+
"stealth_gatling_on": True
|
| 77 |
}
|
bot/ui/keyboards.py
CHANGED
|
@@ -84,12 +84,17 @@ def markup_fragment_settings():
|
|
| 84 |
|
| 85 |
workers = state.get("fragment_workers", 40)
|
| 86 |
camper_int = state.get("camper_interval", 3)
|
|
|
|
|
|
|
| 87 |
|
| 88 |
return InlineKeyboardMarkup([
|
| 89 |
[
|
| 90 |
InlineKeyboardButton(f"Engine: {frag_on}", callback_data="toggle_frag_engine", style=frag_style),
|
| 91 |
InlineKeyboardButton(f"Autoclaim: {frag_ac}", callback_data="toggle_frag_ac", style=frag_ac_style)
|
| 92 |
],
|
|
|
|
|
|
|
|
|
|
| 93 |
[
|
| 94 |
InlineKeyboardButton("β 5", callback_data="frag_set|workers|-5", style=enums.ButtonStyle.DANGER),
|
| 95 |
InlineKeyboardButton(f"Workers: {workers}", callback_data="ignore", style=enums.ButtonStyle.PRIMARY),
|
|
|
|
| 84 |
|
| 85 |
workers = state.get("fragment_workers", 40)
|
| 86 |
camper_int = state.get("camper_interval", 3)
|
| 87 |
+
stealth_on = _bool(state.get("stealth_gatling_on", True))
|
| 88 |
+
stealth_style = enums.ButtonStyle.SUCCESS if state.get("stealth_gatling_on", True) else enums.ButtonStyle.DANGER
|
| 89 |
|
| 90 |
return InlineKeyboardMarkup([
|
| 91 |
[
|
| 92 |
InlineKeyboardButton(f"Engine: {frag_on}", callback_data="toggle_frag_engine", style=frag_style),
|
| 93 |
InlineKeyboardButton(f"Autoclaim: {frag_ac}", callback_data="toggle_frag_ac", style=frag_ac_style)
|
| 94 |
],
|
| 95 |
+
[
|
| 96 |
+
InlineKeyboardButton(f"π‘οΈ Stealth Gatling: {stealth_on}", callback_data="toggle_stealth_gatling", style=stealth_style)
|
| 97 |
+
],
|
| 98 |
[
|
| 99 |
InlineKeyboardButton("β 5", callback_data="frag_set|workers|-5", style=enums.ButtonStyle.DANGER),
|
| 100 |
InlineKeyboardButton(f"Workers: {workers}", callback_data="ignore", style=enums.ButtonStyle.PRIMARY),
|
bot/ui/rich_views.py
CHANGED
|
@@ -330,6 +330,8 @@ def view_rich_fragment_settings():
|
|
| 330 |
frag_ac_style = rp.Style.SUCCESS if state.get("fragment_autoclaim_on", True) else rp.Style.DANGER
|
| 331 |
workers = state.get("fragment_workers", 40)
|
| 332 |
camper_int = state.get("camper_interval", 3)
|
|
|
|
|
|
|
| 333 |
|
| 334 |
return rp.message(
|
| 335 |
rp.heading("π Fragment Marketplace Controls", size=2),
|
|
@@ -339,6 +341,9 @@ def view_rich_fragment_settings():
|
|
| 339 |
rp.btn(f"Engine: {frag_on}", "toggle_frag_engine", style=frag_style),
|
| 340 |
rp.btn(f"Autoclaim: {frag_ac}", "toggle_frag_ac", style=frag_ac_style)
|
| 341 |
),
|
|
|
|
|
|
|
|
|
|
| 342 |
rp.buttons(
|
| 343 |
rp.btn("β 5", "frag_set|workers|-5", style=rp.Style.DANGER),
|
| 344 |
rp.btn(f"Workers: {workers}", "ignore", style=rp.Style.PRIMARY),
|
|
|
|
| 330 |
frag_ac_style = rp.Style.SUCCESS if state.get("fragment_autoclaim_on", True) else rp.Style.DANGER
|
| 331 |
workers = state.get("fragment_workers", 40)
|
| 332 |
camper_int = state.get("camper_interval", 3)
|
| 333 |
+
stealth_on = _bool(state.get("stealth_gatling_on", True))
|
| 334 |
+
stealth_style = rp.Style.SUCCESS if state.get("stealth_gatling_on", True) else rp.Style.DANGER
|
| 335 |
|
| 336 |
return rp.message(
|
| 337 |
rp.heading("π Fragment Marketplace Controls", size=2),
|
|
|
|
| 341 |
rp.btn(f"Engine: {frag_on}", "toggle_frag_engine", style=frag_style),
|
| 342 |
rp.btn(f"Autoclaim: {frag_ac}", "toggle_frag_ac", style=frag_ac_style)
|
| 343 |
),
|
| 344 |
+
rp.buttons(
|
| 345 |
+
rp.btn(f"π‘οΈ Stealth Gatling (Anti-Flood): {stealth_on}", "toggle_stealth_gatling", style=stealth_style)
|
| 346 |
+
),
|
| 347 |
rp.buttons(
|
| 348 |
rp.btn("β 5", "frag_set|workers|-5", style=rp.Style.DANGER),
|
| 349 |
rp.btn(f"Workers: {workers}", "ignore", style=rp.Style.PRIMARY),
|
utils/anti_ban.py
CHANGED
|
@@ -17,8 +17,12 @@ def pick_account(pool: list):
|
|
| 17 |
|
| 18 |
now = datetime.datetime.now(datetime.timezone.utc)
|
| 19 |
|
| 20 |
-
# 1. Evaluate cooldown status
|
| 21 |
for acc in pool:
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
if getattr(acc, "status", None) == "cooling" and getattr(acc, "cooldown_until", None):
|
| 23 |
if now >= acc.cooldown_until:
|
| 24 |
acc.status = "active"
|
|
|
|
| 17 |
|
| 18 |
now = datetime.datetime.now(datetime.timezone.utc)
|
| 19 |
|
| 20 |
+
# 1. Evaluate cooldown status & hourly reset
|
| 21 |
for acc in pool:
|
| 22 |
+
if not hasattr(acc, 'hour_start_time') or (now - acc.hour_start_time).total_seconds() > 3600:
|
| 23 |
+
acc.hour_start_time = now
|
| 24 |
+
acc.checks_this_hour = 0
|
| 25 |
+
|
| 26 |
if getattr(acc, "status", None) == "cooling" and getattr(acc, "cooldown_until", None):
|
| 27 |
if now >= acc.cooldown_until:
|
| 28 |
acc.status = "active"
|