Setting up webhook for: https://cafelitto.pubgstore.ru/bot/webhook.php
❌ Failed to set webhook!
Please check:
1. Bot token is correct
2. Webhook URL is accessible via HTTPS
3. SSL certificate is valid
Webhook Setup - Cafe Litto Bot
🤖 Cafe Litto Bot - Webhook Setup
❌ Failed to set webhook!
Please check the following:
- Bot token is correct in config.php
- Webhook URL is accessible via HTTPS
- SSL certificate is valid
- Domain is reachable from the internet
🔧 Configuration
- Bot Token: 8129931799:AAFo...
- OpenAI API: Configured
- Database: cafelitto_warehouse
- Upload Directory: /var/www/cafelitto/config/../uploads/
require_once __DIR__ . '/../config/config.php';
require_once __DIR__ . '/../classes/TelegramBot.php';
$bot = new TelegramBot();
// Set webhook URL
$webhook_url = WEBHOOK_URL;
echo "Setting up webhook for: $webhook_url\n";
$result = $bot->setWebhook($webhook_url);
if ($result) {
echo "✅ Webhook successfully set!\n";
echo "Webhook URL: $webhook_url\n";
echo "\nBot is now ready to receive updates.\n";
echo "\nNext steps:\n";
echo "1. Make sure the webhook URL is accessible\n";
echo "2. Test the bot by sending /start command\n";
echo "3. Upload a test invoice image\n";
} else {
echo "❌ Failed to set webhook!\n";
echo "Please check:\n";
echo "1. Bot token is correct\n";
echo "2. Webhook URL is accessible via HTTPS\n";
echo "3. SSL certificate is valid\n";
}
echo "\n";
?>
Webhook Setup - Cafe Litto Bot
🤖 Cafe Litto Bot - Webhook Setup
❌ Failed to set webhook!
Please check the following:
- Bot token is correct in config.php
- Webhook URL is accessible via HTTPS
- SSL certificate is valid
- Domain is reachable from the internet
🔧 Configuration
- Bot Token: 8129931799:AAFo...
- OpenAI API: Configured
- Database: cafelitto_warehouse
- Upload Directory: /var/www/cafelitto/config/../uploads/