Deployment notes for cPanel shared hosting:
- Put public/* files into public_html (or a subfolder). Keep src/ and .env one level above public_html if possible.
- If you cannot move src/, ensure to block direct web access with .htaccess (deny from all) in src/ directory.
- Set webhook via: https://api.telegram.org/bot<token>/setWebhook?url=https://yourdomain.com/path/to/public/webhook.php
- To enable proxy (if Telegram is blocked in your region), set TELEGRAM_PROXY_ENABLED=true and TELEGRAM_PROXY_URL to your proxy (http://ip:port or socks5://ip:port). cURL supports SOCKS5 with CURLOPT_PROXYTYPE if modified.
- Use phpMyAdmin to import sql/install.sql
- Make sure PHP has cURL and PDO_MySQL enabled.
