RESELLER BOT SERVER - STEP 2 (cPanel "Setup Python App")

1) cPanel -> Setup Python App -> Create Application
   - Python version : 3.9 or newer (3.11 is best)
   - Application root: reseller_bot_server      (upload all files of this zip there)
   - Application URL : e.g. bots.yourdomain.com  (a free sub-domain is fine, HTTPS must work)
   - Startup file    : passenger_wsgi.py
   - Entry point     : application

2) Environment variables (same page):
   SITE_BASE_URL   = https://YOUR-STORE-SITE.com      (no / at the end)
   BOT_API_SECRET  = the secret you created in  YOUR-STORE-SITE.com/admin-bots
   Do NOT set BOT_TOKEN, ADMIN_ID or GATEWAY_API_TOKEN here.

3) Press "Run Pip Install" (requirements.txt), then "Restart".
   Open the application URL in a browser. It must show:  bot server ok - bots loaded: 0
   If it shows "Main.py could not be loaded ..." send that line to Claude.

4) In YOUR-STORE-SITE.com/admin-bots put the same URL (https://bots.yourdomain.com) in "Bot server URL" and save.

5) Reseller: my-bot page -> token + admin ID -> Activate. (An old "waiting" bot: press Stop, then Start.)
   Send /start and /myid to the bot to test.
