============================================
WHATSAPP CRM - INSTALL INSTRUCTIONS (Bangla)
============================================

1) DATABASE SETUP:
   - cPanel > MySQL Databases e giye ekta notun database ar user create korun
   - User take database er sathe "All Privileges" diye attach korun
   - cPanel > phpMyAdmin e giye apnar notun database select korun
   - SQL tab e giye "schema.sql" file er content copy-paste kore run korun
     (Eta "contacts" ar "messages" table toiri korbe)

2) FILE UPLOAD:
   - Ei zip er shob .php file, .htaccess, ar README.txt file gulo
     apnar "public_html" folder e upload korun (File Manager ba FTP diye)
   - schema.sql upload korar dorkar nai, oita sudhu phpMyAdmin e run korar jonno

3) CONFIG.PHP UPDATE:
   - config.php file open kore ei value gulo বদলে দিন:
     DB_HOST         -> shadharonoto 'localhost' e thake
     DB_NAME         -> apnar cPanel database name
     DB_USER         -> apnar cPanel database user
     DB_PASS         -> apnar cPanel database password
     WHATSAPP_TOKEN  -> Meta for Developers theke ana token
     WHATSAPP_PHONE_NUMBER_ID -> Meta WhatsApp API setup theke ana ID
     VERIFY_TOKEN    -> nijer moto ekta secret string dite paren

4) META WEBHOOK SETUP:
   - Meta for Developers > Apnar App > WhatsApp > Configuration e jaan
   - Callback URL: https://yourdomain.com/webhook.php
   - Verify Token: config.php te je VERIFY_TOKEN dise sheta
   - "Verify and Save" click korun
   - Webhook fields e "messages" subscribe korun

5) SSL (HTTPS) CHECK:
   - cPanel > SSL/TLS Status e giye check korun apnar domain e SSL active ache kina
   - Na thakle "AutoSSL"/"Let's Encrypt" diye free SSL enable korun
   - Meta webhook shudhu HTTPS URL accept kore

6) TEST:
   - send.php file open kore "$to" variable e apnar test WhatsApp number din
   - Browser e https://yourdomain.com/send.php open korle test message jabe
   - Kono client apnake WhatsApp e message dile, oita "messages" table e save hobe

FILE LIST:
   config.php        -> Database o API credentials
   db.php            -> Database connection helper
   webhook.php       -> Meta theke asha message receive kore MySQL e save kore
   whatsapp_api.php  -> Message/media pathanor function shomuho
   send.php          -> Test/example - message pathanor script
   schema.sql        -> Database table toiri korar SQL (phpMyAdmin e run korben)
   .htaccess         -> config.php o db.php direct access theke protect kore

Kono shomossha hole config.php er value gulo abar check korun,
ba error_log() theke error dekhun (cPanel > Errors / error_log file).
============================================
