<?php
// لیست توکن‌های ربات‌ها و مسیر فایل‌های مربوط به آنها
$bots = [
    "7928431608:AAH7DP4X-DUvA_ZaMKEuV-WYLPDVt_ChP_o" => "/factor/factor.php", 
    "7690191796:AAEZPpWGcEti1B--gM5NEVQrEHwStHmAteM" => "/config/config.php", 
    "6445495012:AAF7ver4JR3QEGunrOqebOFoWU5NosCi6Hs" => "/vpn/config.php", 
     "7813195015:AAENgGhTAZpQrJfGAUVUIX6j3Tbdq4zkTes" => "/vpn/dokme.php", 
     "7805922431:AAFyoG_N_UjA8qu3EB4sOFGx5jvX6CgNAFg" => "/vpn/enteghal.php", 
     "7548000196:AAEqev1Z9a-YbAK5mpezosoDIWNVuBXg9Jg" => "/vpn/karakter.php", 
     "7332260449:AAGpEPKNNXTqzOllkB6d6GXyJeTxVbVLRr0" => "/vpn/kasr.php", 
     "8096652401:AAEWcXaRCEsQQK5pZtoSJoDpgI_HDM75350" => "/vpn/mil_sh.php",  
     "7753233668:AAFdvt2FcR5OJoiMrLLCdbg2bNP3kKg06z0" => "/vpn/rahnama.php", 
     "8060123747:AAHwYl6xoHCmDN-FWqUNWPgzqz_hoO_4Lgg" => "/vpn/shomaresh.php",
     "8189071858:AAFZ-tJ1BxqNnPPt02FGp5rmyh5y9LWWrz0" => "/vpn/bot.php", 
     "8190124207:AAEjNwOrFUpP8g8Mbezv9nfXziHUCO81jJs" => "/ping/ping_server.php", 
];

// دامنه جدید
$new_domain = "https://qazii.shop";

// برای هر ربات وبهوک تنظیم کنید
foreach ($bots as $token => $path) {
    // آدرس فایل مربوط به هر ربات
    $webhook_url = $new_domain . $path;

    // آدرس API وبهوک
    $api_url = "https://api.telegram.org/bot" . $token . "/setWebhook?url=" . $webhook_url;

    // ارسال درخواست
    $response = file_get_contents($api_url);

    // نمایش نتیجه برای بررسی
    echo "Webhook set for bot: $token\n";
    echo "Webhook URL: $webhook_url\n";
    echo "Response: $response\n\n";
}
?>