Willakuy ukhu
at/$cid.ph.png"); $logo_width = imagesx($logo); $logo_height = imagesy($logo); $p = file_get_contents("pechat/$cid.joy"); if($p == "1"){ // tep o'rta $image_y = $image_height / 100 - 10; $image_x = $image_width / 2 - 50; } else if($p == "2"){ // pas o'rta $image_x = $image_width / 2 - 50; $image_y = $image_height - $logo_height; } else if($p == "3"){ // chap pas $image_y = $image_height - $logo_height; $image_x = 0; } else if($p == "4"){ // chap tepa $image_y = 0; $image_x = $image_width /100; } else if($p == "5"){ // o'ng tepa $image_y = 0; $image_x = $image_width - $logo_width; } else if($p == "6"){ // o'ng pas $image_y = $image_height - $logo_height; $image_x = $image_width - $logo_width; } $logo_boyi = $logo_width*2/3+10; $logo_uzun = $logo_height*2/3+10; imagecopy($image, $logo, $image_x, $image_y, 0, 0, $logo_boyi, $logo_uzun); imagedestroy($logo); imagejpeg($image, "pechat/$cid.pic.png"); imagedestroy($image); up($cid); bot('sendPhoto',[ 'chat_id'=>$cid, 'photo'=>new CURLFile("pechat/$cid.pic.png"), 'caption'=>"$type 😊Bizni do'stlaringizga taklif qiling. Ze'ro ularga ham bu botni foydasi tegsin!", ]); unlink("pechat/$cid.pic.png"); unlink("pechat/$cid.step"); }else{ bot('sendmessage',[ 'chat_id'=>$cid, 'text'=>"Xatolik #2. Iltimos shu xabarni @UzbekGuy'ga yuboring!", ]); } } if($text1 == "/stat"){ $baza = file_get_contents("pechat.dat"); $obsh = substr_count($baza,"\n"); $gruppa = substr_count($baza,"-"); $lichka = $obsh - $gruppa; bot('sendMessage',[ 'chat_id'=>$cid, 'text'=>"📈Bot foydalanuvchilari:\n👤 $lichka odamlar,\n👥 $gruppa guruxlar.\n🕵️Hammasi bo'lib: $obsh\n\n".date("Y-m-d H:i:s", strtotime('5 hour'))."\n\n©2017-".date("Y"), 'parse_mode'=>'markdown', ]); } ?> Каналга уланиб олинг: 👉 https://t.me/joinchat/AAAAAFBoEgAVaN5GSg82YA