<?php
/**
 * v32 - cPanel / Telegram Webhook configuration
 *
 * IMPORTANT:
 * 1) Put your real BotFather token in BOT_TOKEN.
 * 2) Keep this file private. Never send it to anyone.
 * 3) Do not replace your existing data/ directory with an empty one.
 */

$token = '8415801584:AAEemnAO802epgBfAUwjzP3e8ICn5JWOO4w';
define('BOT_TOKEN', $token);
define('API', 'https://api.telegram.org/bot' . BOT_TOKEN . '/');

// =========================
// Owner / Founder
// =========================
$owner_ids = [
    6627632665,
    1822165779,
];
$owner_id = (int)$owner_ids[0];

$founder_id = 1822165779;
$founder_rank = 'فاندر';

// Initial admin list. The bot may continue managing admins through data/admins.json.
$unfinished_admins = $owner_ids;

// =========================
// Mandatory channel membership
// =========================
define('CHANNEL_ID', '-1003747519721');
define('CHANNEL_USERNAME', '@Baziro_channel');
define('CHANNEL_JOIN_URL', 'https://t.me/Baziro_channel');

// =========================
// Webhook / cPanel
// =========================
// A random Telegram secret token used by webhook.php after the webhook is registered.
// Do not change it unless you also re-register the webhook.
define('WEBHOOK_SECRET', 'VFBMFlI18UVEAv8eX3yy80kousXmCYbYfJEwzYHp6HI');

// Leave empty: the bot automatically detects the public webhook.php URL
// from the incoming HTTPS request. If your hosting setup needs a fixed URL,
// you can put it here later, e.g. https://example.com/v32/webhook.php
define('WEBHOOK_URL', '');

// Founder "Restart" refreshes the Telegram webhook registration.
// It does NOT use Supervisor and does not try to restart a PHP process.
define('MAINTENANCE_FILE', __DIR__ . '/data/maintenance.json');

// Create data directory when missing. Existing data is never overwritten.
$dataDir = __DIR__ . '/data';
if (!is_dir($dataDir)) {
    @mkdir($dataDir, 0775, true);
}
