DEV Community

Cover image for A Tiny Python Bot That Checks SMM Panel Orders for Filipino Resellers
SEO - NT Tech Innovation
SEO - NT Tech Innovation

Posted on AI-assisted

A Tiny Python Bot That Checks SMM Panel Orders for Filipino Resellers

Think about a part-time reseller in Cebu. She sells social media services to sari-sari store owners and a few local bands. Her biggest headache isn't sales. It's the follow-ups.

"Ate, is my order done yet?" Twenty times a day. On Messenger. During her actual job.

A little Python bot fixes that in two evenings. It checks every open order and writes a clean summary. She just copies the status line and replies. Here's how to build it.

The problem with manual order checks

Manual checks feel quick. They aren't. Open the panel. Log in. Find the order. Copy the status. Switch to Messenger. Repeat.

Multiply that by forty orders and you lose an hour. Every day.

The fix is boring in the best way. Use the panel's API. Ask for all statuses at once. Save the answers somewhere you can read in two seconds.

What you need

The examples use BoostingPH, a Philippine panel. The API format is common across many panels though. Swap the URL and the rest mostly carries over.

The shopping list:

  • Python 3.10 or newer
  • The requests library (pip install requests)
  • Your API key, kept in an environment variable
  • A plain CSV file as the "database" (yes, really)

Everything is documented on the BoostingPH API page. Calls are POST requests to https://boostingph.com/api/v2. You always send key and action. You get JSON back.

Step 1: one function to rule them all

# panel.py
import os
import requests

API_URL = "https://boostingph.com/api/v2"
API_KEY = os.environ["SMM_API_KEY"]

def call_panel(action, **params):
    payload = {"key": API_KEY, "action": action, **params}
    r = requests.post(API_URL, data=payload, timeout=30)
    r.raise_for_status()
    data = r.json()
    if isinstance(data, dict) and "error" in data:
        raise RuntimeError(f"Panel error: {data['error']}")
    return data
Enter fullscreen mode Exit fullscreen mode

The timeout matters more than you'd think. Mobile hotspots in the province can drop for a minute. Without a timeout the script just... hangs. Forever.

Step 2: keep orders in a CSV

Fancy databases can wait. A CSV with three columns does the job:

  • order_id
  • customer (a Messenger name or nickname)
  • status (last known status)

Each time you place an order through the dashboard or the API, add a row. That's the whole "system."

import csv

def load_orders(path="orders.csv"):
    with open(path, newline="", encoding="utf-8") as f:
        return list(csv.DictReader(f))

def save_orders(rows, path="orders.csv"):
    with open(path, "w", newline="", encoding="utf-8") as f:
        writer = csv.DictWriter(f, fieldnames=["order_id", "customer", "status"])
        writer.writeheader()
        writer.writerows(rows)
Enter fullscreen mode Exit fullscreen mode

Step 3: bulk status, one request

The status action accepts up to 100 comma-separated IDs in the orders parameter. So we only check orders that aren't finished yet. Then we batch them.

from panel import call_panel

DONE = {"Completed", "Canceled", "Refunded"}

def refresh_statuses():
    rows = load_orders()
    open_rows = [r for r in rows if r["status"] not in DONE]

    for i in range(0, len(open_rows), 100):
        chunk = open_rows[i:i + 100]
        ids = ",".join(r["order_id"] for r in chunk)
        result = call_panel("status", orders=ids)

        for r in chunk:
            info = result.get(r["order_id"], {})
            if "status" in info:
                r["status"] = info["status"]

    save_orders(rows)
    return rows
Enter fullscreen mode Exit fullscreen mode

One request for up to a hundred orders. Way kinder to the API. Way faster for you.

Step 4: a reply-ready summary

This is the part resellers love most. The bot prints a line per customer you can paste straight into chat.

def summary():
    for r in refresh_statuses():
        if r["status"] not in DONE:
            print(f"Hi {r['customer']}! Order #{r['order_id']} is {r['status'].lower()} po. Salamat!")

if __name__ == "__main__":
    summary()
Enter fullscreen mode Exit fullscreen mode

Schedule it with Windows Task Scheduler every hour. On Linux a cron line does the same. Now the day starts with a ready list instead of a pile of "is it done?" messages.

Optional: refills and balance alerts

Once the basics work, add two extras:

  • Balance warning. The balance action returns your balance and currency. If it dips under a set amount the bot prints a big warning. No more failed orders at 11 p.m.
  • Refill requests. For services that support it, refill with an order ID asks for a refill. Only trigger it after checking the status first. Blind retries are how you double-spend. (There's a whole write-up on avoiding double orders with SMM panel APIs in Python if you want to go deeper.)
info = call_panel("balance")
if float(info["balance"]) < 300:
    print(f"⚠️ Low balance: {info['balance']} {info['currency']}")
Enter fullscreen mode Exit fullscreen mode

Little lessons worth knowing

A few notes before you build:

  • Order IDs can show up as numbers in some places and strings in others. Normalize everything to strings early.
  • Open the CSV in Excel and long IDs may turn into scientific notation. Fun morning. Edit it in Google Sheets or a text editor instead.
  • Logging every API response to a file is the best ten lines you'll write. Debugging without logs is guesswork.
  • Keep the key out of the script. Shared laptops are common. Enough said.

Should you build this?

If you handle more than ten orders a week then yes, probably. It's a weekend project at most. And it gives you hours back.

If you're a reseller in the Philippines looking for an SMM panel Philippines buyers already use, the API docs above are a fair place to start. The full service list sits at https://boostingph.com/services so you can map service IDs before writing code.

One honest note before you go wild though. A boost gets content seen sooner. It doesn't make weak content good. Tell your customers that up front. They'll trust you more for it.

A natural next step is a tiny Messenger webhook so customers can check status themselves. Maybe that's the next write-up.

Questions? Better ways to handle the CSV mess? Comments are open.


Written by MD Fozla Rabbi, SEO Specialist.

Top comments (0)