if($text=="/rasm"){
$getp = file_get_contents("https://api.telegram.org/bot$token/getUserProfilePhotos?user_id=$uid&limit=1");
$json = json_decode($getp);
$photo = $json->result->photos[0][0]->file_id;
bot('sendPhoto',[
'chat_id'=>$cid,
'photo'=>$photo,
'caption'=>"Sizning profil rasm",
'reply_to_message_id'=>$mid,
'parse_mode'=>'html',
]);
}
Profildan rasm oladigan funksiya ๐ฐ
Manba: #fav_ke
function captcha($uid){
$javob = file_get_contents("captcha/$uid.dat");
$captcha=file_get_contents("captcha/$uid.txt");
if($captcha==true){
return true;
}else{
$rand=rand(1,100);
file_put_contents("captcha/$uid.dat","$rand");
bot('sendphoto', [
'chat_id'=>$uid,
'photo'=>"https://dummyimage.com/279x100/ffffff/000000.jpg&text=Rasmdagi sonni kiriting: $rand ",
'caption'=>"<b>
๐Salom, Iltimos Bot emasligingizni tasdiqlangโ ๏ธ</b>",
'parse_mode'=>"HTML",
]);
exit();
}
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$cid = $message->chat->id;
$text = $message->text;
$tx = $message->text;
$uid= $message->from->id;
$captcha = file_get_contents("captcha/$uid.txt");
$javob = file_get_contents("captcha/$uid.dat");
mkdir("captcha");
if($text==$javob){
file_put_contents("captcha/$uid.txt","Successfully");
bot('SendMessage',[
'chat_id'=>$uid,
'text'=>"<b>๐คInson ekanligingiz Tasdiqlandiโ
</b>",
'parse_mode'=>"html",
]);
}
if($text=="$tx" and captcha($uid)=="true" and $text!="$javob"){
}
///โ Dasturchi va manba: #fav_ke
๐บ๐ฟ ๐๐ฎ๐ป๐ฎ๐น๐ด๐ฎ ๐ผ๐ฏ๐๐ป๐ฎ ๐ฏ๐ผ'๐น๐ถ๐ป๐ด!
โช @favke_academiya
KinoBot.zip
6.7 KB
๐ฌ Kino bot kodi
๐ฃ๏ธ 4 tilga tarjima qilingan
๐ฃ๏ธ 4 tilga tarjima qilingan
๐ฎโโ Administrator paneli:
๐ง Xabar yuboring
๐ข Kanallarni qo'shish va o'chirish
๐ Statistika boti
๐ฎ Admins: @alimov_tj & @Fav_ke
๐ข Kanallar: @PHPmarket & @favke_family
๐1