NEXORA STORE TELEGRAM BOT — V10 PREMIUM DELIVERY
================================================
Based on V9 Full. All previous features retained.

UPDATED
1. Telegram Order Delivered message redesigned: clean, premium order header,
   product name, order ID, quantity, access details, and footer.
2. Email + Password stock: converts legacy "Login at ... with Email: NAME" 
   into the email address only, and removes a duplicated "Password:" prefix.
   Original inventory contents in MySQL are NOT changed.
3. Product instructions now appear in Telegram's <pre> code-style box.
4. All delivery types (email/password, username/password, coupon, legacy
   coupon, license, activation link, custom, account, manual) formatted.
5. Multi-quantity deliveries list numbered account/item sections.
6. Confirmed Order Telegram message and checkout summary updated to match.
7. Admin > Add/Edit Product > Delivery Preview now displays a Telegram-like
   sample of the real delivery template, without real inventory secrets.
8. HTML special characters are escaped to prevent broken Telegram messages.

INSTALL
-------
BACK UP existing files and database first.
If using V9, upload only these changed paths:
  telegram_bot_starter/includes/functions.php
  telegram_bot_starter/bot/webhook.php
  telegram_bot_starter/admin/product_form.php
  telegram_bot_starter/assets/css/admin.css
Otherwise install V10 Full while preserving your LIVE config and database.
There is NO new SQL migration. Do not replace the live database with
sample schema/data. Do not overwrite your live config credentials blindly.

TEST ON YOUR SERVER
-------------------
1. Admin > Products > edit ChatGPT product > Delivery Preview.
2. Add ONE test stock: demo@example.com|Password: example123 (test only).
3. Complete a test purchase through Telegram and view the delivery message.
4. Check Email, Password and Instructions appear correctly.
5. Check multi-account purchases and other delivery types if applicable.
6. If delivery fails, use Admin > Orders > Order View > Delivery Error.
Previously sent Telegram messages will not be retroactively redesigned.

SECURITY
--------
Downloaded ZIP contains your existing deployment configuration. Keep private.
Rotate any long-lived credentials that may have been exposed.
Real Telegram API, live database and funds/stock operations cannot be tested
in this offline environment. PHP and formatting tests are provided only.

NOTE
----
Telegram's sendMessage limits text to 4,096 characters after parsing; very
large stock payloads or product instructions can exceed that limit. Split
huge multi-account orders or shorten instructions if you receive this error.
