Testing Bootstrap API

1. Checking Required Files:

✅ includes/db.php
✅ includes/json.php
✅ includes/telegram.php
✅ includes/app_state.php
✅ includes/ip_detection.php
✅ includes/activity_log.php
✅ includes/device_fingerprint.php
✅ includes/user_management.php
✅ includes/notifications.php

2. Testing Database:

✅ Database connected
✅ Settings loaded
Bot Token: ✅ SET
Bot Username: my_chili_v2_bot

3. Testing Bootstrap Logic:

✅ All includes loaded successfully

Checking Functions:

✅ telegram_validate_webapp_init
✅ check_user_ban_status
✅ generate_device_fingerprint
✅ store_device_fingerprint
✅ check_device_limit
✅ get_client_ip
✅ get_country_from_ip
✅ check_vpn_access
✅ link_user_to_device
✅ update_user_activity
✅ mark_inactive_users_offline
✅ load_completed_task_ids
✅ create_user_session
✅ client_config_array
✅ user_row_to_state

If all checks pass, the issue might be with Telegram WebApp initData validation.

Try opening the bot from Telegram mobile app instead of web.telegram.org