VIRAL LINK - Telegram Mini App (PHP + MySQL)

1) UPLOAD all files (overwrite). Keep your own config.php; copy the new lines from this config.php (BOT_TOKEN, WEBHOOK_SECRET, POSTBACK_SECRET...) into it.
   Delete the old files listed in DELETE_OLD_FILES.txt.
2) Open /admin/ . Tables are created/updated automatically (schema.sql is optional).
3) Admin > Settings:
   - ImgBB API key (thumbnails)
   - Monetag Zone ID + Direct Link (see below)
   - Bot username, Mini App short name
   The Dashboard checklist shows what is still missing.

MONETAG
 - Add your site/Mini App in Monetag. Create a "Rewarded Interstitial" zone. SDK code looks like:
   <script src='//libtl.com/sdk.js' data-zone='1234567' data-sdk='show_1234567'></script>  -> Zone ID = 1234567
   (Rewarded Popup zone? set Reward mode = pop)
 - Create a "Direct Link" ad -> paste URL in Settings.
 - STRONG ANTI-BYPASS (optional): set POSTBACK_SECRET in config.php, copy the Postback URL from Settings into Monetag,
   then set "Require Monetag postback" = 1. Steps then count only after Monetag confirms the ad.

BOTFATHER
 - /newapp -> your bot -> URL: https://fahim.eshoplaunchers.site/vlink/ -> short name (e.g. v). Put the short name in Settings.
   Video link format: https://t.me/BOT/v?startapp=ID

BOT (choose ONE)
 A) bot.php webhook (simple, all on hosting): set BOT_TOKEN + WEBHOOK_SECRET, click "Set webhook" in Settings.
    Bot answers /start, shows Open App button, and sends the video after unlock.
    Do NOT use A if the same bot token runs your polling downloader bot.
 B) Your existing bot: handle "/start TOKEN" and call bot_api.php?key=BOT_KEY&token=TOKEN, then send the payload.

Content rules: use only videos you own or have permission to share. Monetag and Telegram ban illegal, private or non-consensual content.
