# Free Fire Top-Up Telegram Bot

PHP 8+ Telegram bot with JSON storage and manual payment verification.

## Features

- Diamond packages from the provided screenshot
- FF Like packages from the provided screenshot
- User selects package
- User enters Free Fire UID
- Order confirmation
- Manual bKash/Nagad payment instructions
- User submits TXID
- Admin receives order instantly
- Admin buttons: Approve Payment / Reject / Mark Completed
- Automatic customer notifications
- My Orders menu
- No MySQL/database required
- JSON storage

## Installation

1. Upload this folder to an HTTPS PHP 8+ hosting account.
2. Open `config.php`.
3. Set:
   - `BOT_TOKEN`
   - `ADMIN_IDS`
   - `BKASH_NUMBER`
   - `NAGAD_NUMBER`
4. Make sure `data/` is writable by PHP.
5. Set the Telegram webhook:

   `https://api.telegram.org/botYOUR_BOT_TOKEN/setWebhook?url=https://YOUR-DOMAIN/bot.php`

6. Open your bot and send `/start`.

## Getting your Telegram numeric ID

You can use a Telegram ID bot such as @userinfobot, or temporarily log `$from['id']` in your own bot.

## Important

The payment is manual. The bot does NOT automatically verify bKash/Nagad transactions. Admin must check the payment and press APPROVE PAYMENT.

The bot also does not automatically deliver diamonds/likes through a game API. Admin manually processes the approved order and then presses MARK COMPLETED.

For production use, add HTTPS, regular JSON backups, and restrict access to the data directory.
