if(mb_stripos($text,"/start service-")!==false){
$id = str_replace("/start service-","",$text);
$delmid = sms($cid,"
⏱️ Kuting...", null)->result->message_id;
$a = mysqli_query($connect,"SELECT * FROM services WHERE service_id= '$id'");
while($s = mysqli_fetch_assoc($a)){
$nam = base64_decode($s['service_name']);
$sid = $s['service_id'];
$narx = $s['service_price'];
$curr = $s['api_currency'];
$cancel = explode(":",$s['api_detail'])[5];
$cancel = str_replace(['"',',','refill'],['','',''], $cancel);
if($cancel=="false"){
$cancel = "kuzatilmaydi";
}else{
$cancel = "mavjud";
}
$dripfeed = explode(":",$s['api_detail'])[7];
$dripfeed = str_replace("}","",$dripfeed);
$dripfeed = str_replace('"','',$dripfeed);
if($dripfeed == "true"){
$dripfeed = "ha";
}else{
$dripfeed = "yo‘q";
}
$ab = $s['service_desc'] ? $ab=$s['service_desc'] : null;
$api = $s['api_service'];
$type=$s['service_type'];
$spi = $s['service_api'];
$min=$s["service_min"];
$max=$s["service_max"];
}
$ap = mysqli_fetch_assoc(mysqli_query($connect,"SELECT * FROM providers WHERE id = $api"));
$surl=$ap['api_url'];
$skey=$ap['api_key'];
$j=json_decode(get($surl."?key=".$skey."&action=services"), true);
foreach($j as $el){
if($el['service']==$spi){
$amin=$el["min"];
$amax=$el["max"];
break;
}
}
if($curr=="USD"){
$fr=get("set/usd");
}elseif($curr=="RUB"){
$fr=get("set/rub");
}elseif($curr=="INR"){
$fr=get("set/inr");
}elseif($curr=="TRY"){
$fr=get("set/try");
}
$ab ? $abs = "".base64_decode($ab)."": null;
if($type=="Default" or $type=="default"){
$ab = "
⏬ Minimal buyurtma: $min ta
⏫ Maksimal buyurtma: $max ta";
}elseif($type=="Package"){
}
if(empty($min) or empty($max) or empty($a)){
sleep(1);
sms($cid,"
🤷 Ushbu ID orqali xizmat topilmadi!",$m);
bot('deleteMessage',[
'chat_id'=>$cid,
'message_id'=>$delmid,
]);
unlink("user/$cid.step");
}else{
edit($cid,$delmid,"
🚀 Xizmat nomi: ".($nam)."
🔑 ID: $sid
💰 Narxi (1000x): $narx so'm
$ab
",json_encode([
inline_keyboard=>[
[['text'=>"↗️ Ulashish",'url'=>"https://t.me/share/url/?url=https://t.me/$bot?start=xizmat-$sid"]],
[['text'=>"✅ Buyurtma berish",'callback_data'=>"order=$spi=$min=$max=".$narx."=$type=".$api."=$sid"]],
[['text'=>"❌ Yopish",'callback_data'=>"yoqot"]],
]]));
unlink("user/$cid.step");
exit;
}
}
💠 Mana https://t.me/TezGramBot?start=service820 ning funksiyasi.
✅ Dasturchi: @mebehzod
🔥 Manba: @ByDevsReaksiya bosamiz🔥