1 066
Api Update 🛠️
تم تحديث api فحص sk 🌝
'LiNK': https://khafeer.ml/secret-key/checker-sk.php?sk=
09 груд 2021, 10:36
if($text == "افتار"){
$rand= rand(1,140);
$photo = "https://t.me/RandPhoto/$rand?single";
bot('sendphoto',[
'chat_id'=>$chat_id,
'photo'=>$photo,
]);}
كود من ترسله كلمه - افتار - يرسلك افتار عشوائي 🤧💔
#ياسينecho file_get_contents("https://api.telegram.org/bot" . API_KEY . "/setwebhook?url=" . $_SERVER['SERVER_NAME'] . "" . $_SERVER['SCRIPT_NAME']);
function bot($method,$datas=[]){
$url = "https://api.telegram.org/bot".API_KEY."/".$method;
$ch = curl_init();
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);
curl_setopt($ch,CURLOPT_POSTFIELDS,$datas);
$res = curl_exec($ch);
if(curl_error($ch)){
var_dump(curl_error($ch));
}else{
return json_decode($res);
}
}
فنكشن + ويب هوك بس سوي view
#ياسينif($text == "/start"){
bot('sendmessage', [
'chat_id'=>$chat_id,
'text'=>"اهلا بك في قائمة الزخرفه 🖤",
'reply_markup'=>json_encode([
'inline_keyboard' =>[
[['text' =>"زخرفه اسماء",'callback_data' =>"z1"],['text' =>"زخرفه ارقام",'callback_data' =>"z2"]],
[['text' =>"بايو",'callback_data' =>"z3"]],
]
])
]);
}
$zk = file_get_contents("zk.txt");
if($data == "z1"){
file_put_contents("zk.txt","done");
bot('editmessagetext', [
'chat_id'=>$chat_id2,
'message_id'=>$message_id,
'text'=>"حسنا ارسل الاسم الاقوم بزخرفته 🖤",
]);
}
if($data == "z2"){
file_put_contents("zk.txt","num");
bot('editmessagetext', [
'chat_id'=>$chat_id2,
'message_id'=>$message_id,
'text'=>"حسنا ارسل الرقم لازخرفه🖤",
]);
}
if($data == "z3"){
file_put_contents("zk.txt","bio");
bot('editmessagetext', [
'chat_id'=>$chat_id2,
'message_id'=>$message_id,
'text'=>"حسنا ارسل الاسم الاقوم بصنع بايو🖤",
]);
}
if($text and $zk == "done"){
$api_z = file_get_contents("https://yasen.fun/API/Decorations-text.php?text=$text&type=ar");
bot('sendmessage', [
'chat_id'=>$chat_id,
'text' =>"$api_z",
'parse_mode'=>'MARKDOWN',
]);
unlink("zk.txt");
}
if($text and $zk == "num"){
$api_num = file_get_contents("https://yasen.fun/API/Decorations-text.php?text=$text&type=num");
bot('sendmessage', [
'chat_id'=>$chat_id,
'text' =>"$api_num",
'parse_mode'=>'MARKDOWN',
]);
unlink("zk.txt");
}
if($text and $zk == "bio"){
$api_bio = file_get_contents("https://yasen.fun/API/Decorations-text.php?text=$text&type=bio");
bot('sendmessage', [
'chat_id'=>$chat_id,
'text' =>"$api_bio",
'parse_mode'=>'MARKDOWN',
]);
unlink("zk.txt");
}
كود زخرفه بايو+عربي+انكليزي+ارقام المهم بس ضيف متغيرات وفنكشن راح يصير بوت زخرفه وبس
#ياسين. 🖤