Update: 2026-07-05 23:31:51

This commit is contained in:
Hamza-Ayed
2026-07-05 23:31:51 +03:00
parent 36761dce91
commit 4a6ca417ad
3 changed files with 37 additions and 1 deletions
@@ -24,6 +24,8 @@ import requests
SERVER_URL = "http://jordan-siro.intaleqapp.com/backend/marketing_engine/social_worker.php"
BOT_TOKEN = "YOUR_SECRET_BOT_TOKEN" # Must match headers in social_worker.php
PLATFORM = "facebook" # 'facebook' or 'telegram'
ACCOUNT_ID = None # Set to a specific integer if manual mapping is preferred
DEVICE_ID = None # e.g. "a1b2c3d4" - Recommended: The unique Android device ID for auto Plug & Play binding
CHECK_INTERVAL_SECONDS = 60 # Cooldown between checking for new tasks
headers = {
@@ -105,7 +107,13 @@ def report_status(action, params):
def process_task():
print("[*] Checking for pending tasks...")
try:
res = requests.get(f"{SERVER_URL}?action=get_task&platform={PLATFORM}", headers=headers, timeout=10)
url = f"{SERVER_URL}?action=get_task&platform={PLATFORM}"
if ACCOUNT_ID:
url += f"&account_id={ACCOUNT_ID}"
elif DEVICE_ID:
url += f"&device_id={DEVICE_ID}"
res = requests.get(url, headers=headers, timeout=10)
response_data = res.json()
except Exception as e:
print(f"[-] Connection failed: {e}")