if($text=="🔐 Hamkorlik" and joinchat($cid)==1) {
$result = mysqli_query($connect,"SELECT * FROM `users` WHERE id = '$cid'");
$rew = mysqli_fetch_assoc($result);
$text = $rew['api_key'];
$i = substr($text,17,20);
$b = substr($text,0,10);
$api_key = "$b*****$i";
sms($cid,"🔗 API manzil:\nhttps://".$_SERVER['SERVER_NAME']."/api/v2
🔑 Sizning API kalitingiz:\n $api_key
💵 API balansingiz:\n ".$rew['balance']." so‘m",keyboard([
[['text'=>"♻️ API kalitni yangilash",'callback_data'=>"reset_api"]],
[['text' => '🔖 API Kalitni Nusxa olish', 'copy_text' => ['text' => "".$rew['api_key'].""]]],
[['text'=>"📑 Qo‘llanma ( Web APP )",'web_app'=>['url'=>"https://".$_SERVER['SERVER_NAME']."/api"]]],
]));
}
🤖 @TezGramAPIBot'dagi Hamkorlik bo'lim funksiya.
👨💻 Manba: @FayzulloCoder
💭 Kanal: @ByDevs
$result = mysqli_query($connect,"SELECT * FROM `users` WHERE id = '$cid'");
$rew = mysqli_fetch_assoc($result);
$text = $rew['api_key'];
$i = substr($text,17,20);
$b = substr($text,0,10);
$api_key = "$b*****$i";
sms($cid,"🔗 API manzil:\nhttps://".$_SERVER['SERVER_NAME']."/api/v2
🔑 Sizning API kalitingiz:\n $api_key
💵 API balansingiz:\n ".$rew['balance']." so‘m",keyboard([
[['text'=>"♻️ API kalitni yangilash",'callback_data'=>"reset_api"]],
[['text' => '🔖 API Kalitni Nusxa olish', 'copy_text' => ['text' => "".$rew['api_key'].""]]],
[['text'=>"📑 Qo‘llanma ( Web APP )",'web_app'=>['url'=>"https://".$_SERVER['SERVER_NAME']."/api"]]],
]));
}
🤖 @TezGramAPIBot'dagi Hamkorlik bo'lim funksiya.
👨💻 Manba: @FayzulloCoder
💭 Kanal: @ByDevs