<?php
error_reporting(0);
header('Content-Type: application/json');
$link = $_GET['url'];
$headers = array();
$headers[] = 'origin: https://www.getfvid.com';
$headers[] = 'referer: https://www.getfvid.com/';
$headers[] = 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/537.36';
function index($POSTFIELDS, $HTTPHEADER)
{
$curl = curl_init();
$config = array(
CURLOPT_URL => "https://www.getfvid.com/downloader",
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => $HTTPHEADER,
CURLOPT_POSTFIELDS => array(
'url'=> $POSTFIELDS
)
);
curl_setopt_array($curl, $config);
$response = curl_exec($curl);
curl_close($curl);
preg_match_all('/(<input type="hidden" id="title_video" value="(.*?)">)|(<a href="(.*?)" target="_blank" class="btn btn-download" rel="nofollow" download>Download in <strong>HD<\/strong>)/', $response, $matches);
return $matches;
}
$result = array('ok'=> false, 'error'=> 'invalid method');
if($_GET){
if(strpos($link, 'facebook.com') !== false ){
$get = index($link, $headers);
$result = array(
'ok'=> true,
'result'=> [
'title'=> $get[2][0],
'link'=> $get[4][1]
]
);
}else{
$result = array(
'ok'=> false,
'error'=> 'invalid url'
);
}
}
$result['source'] = 'https://t.me/WWW99W';
echo json_encode($result);ايبي تحميل من المواقع
❤2👍1
<?php
error_reporting(0);
header('Content-Type: application/json');
$url = $_GET['vid'];
function ajax($link)
{
$curl = curl_init();
$config = array(
CURLOPT_URL => "https://api.tikmate.app/api/lookup",
CURLOPT_HTTPHEADER => array(
'origin: https://tikmate.app',
'referer: https://tikmate.app/',
'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36'
),
CURLOPT_POST => true,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_POSTFIELDS => 'url=' . $link
);
curl_setopt_array($curl, $config);
$result = curl_exec($curl);
curl_close($curl);
return $result;
}
$modes = json_decode(ajax($url), true);
$response = array('ok'=> false, 'descrption'=> 'Missing a vaild url');
if( $url ) {
if(strpos($url, 'tiktok.com') !== false ) {
if( $modes ) {
$response = array(
'ok'=> true,
'result' => [
'like'=> $modes['like_count'],
'comment'=> $modes['comment_count'],
'share'=> $modes['share_count'],
'created'=> $modes['create_time'],
'url'=> 'https://tikmate.app/download/' . $modes['token'] . '/' . $modes['id'] . '.mp4'
]
);
}
}
else
{
$response = array('ok'=> false, 'descrption'=> 'invaild tiktok url');
}
}
$response['source'] = 0;
echo json_encode($response, JSON_PRETTY_PRINT);ايبي تحميل تيك توك.
😭2👍1
<?php
$API_KEY = 'هنا'; //توكن بوتك
echo "https://api.telegram.org/bot$API_KEY/setwebhook
?url=".$_SERVER['SERVER_NAME']."".$_SERVER['SCRIPT_NAME'];
define('API_KEY',$API_KEY);
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);
}
}
$admin =2104832172;
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$from_id = $message->from->id;
$chat_id = $message->chat->id;
$text = $message->text;
$data = $update->callback_query->data;
$message_id = $update->callback_query->message->message_id;
$chat_id2 = $update->callback_query->message->chat->id;
$us = explode("\n", file_get_contents("us.txt"));
if ($message and !in_array($chat_id, $us)) {
file_put_contents("us.txt", "\n".$chat_id,FILE_APPEND);
}
if ($text == '/stat') {
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>count($us)
]);
}
if ($text == '/start') {
mkdir('photos');
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>'مرحبًا بك في الروبوت الذي يضيف إطارات إلى صوره','reply_markup'=>json_encode([
'inline_keyboard'=>[
[['text'=>'Contact developer Ahmed ⚙','url'=>'t.me/WWW99W']]
]
])
]);
}
if($message->photo){
$path = bot('getfile',['file_id'=>$message->photo[2]->file_id])->result->file_path;
file_put_contents("$chat_id.jpg", file_get_contents('https://api.telegram.org/file/bot'.$API_KEY.'/'.$path));
$data = getimagesize("$chat_id.jpg");
$dest = imagecreatefromjpeg("$chat_id.jpg");
$src = imagecreatetruecolor($data[0] ,$data[1] + 250);
imagefill($src, 0, 0, imagecolorallocate($src,0,0,0));
imagecopy($src, $dest, 0, 125, 0, 0 ,$data[0] , $data[1]);
imagejpeg($src,"$chat_id.jpg");
imagedestroy($src);
imagedestroy($dest);
bot('sendphoto',[
'chat_id'=>$chat_id,
'photo'=>new CURLFile("$chat_id.jpg"),
'caption'=>'بواسطة: @WWW99W ⚙ اللون: اسود',
]);
file_put_contents("$chat_id.jpg", file_get_contents('https://api.telegram.org/file/bot'.$API_KEY.'/'.$path));
$data = getimagesize("$chat_id.jpg");
$dest = imagecreatefromjpeg("$chat_id.jpg");
$src = imagecreatetruecolor($data[0] + 250,$data[1]);
imagefill($src, 0, 0, imagecolorallocate($src,255,215,0));
imagecopy($src, $dest, 125, 0, 0, 0 ,$data[0] , $data[1]);
imagejpeg($src,"$chat_id.jpg");
imagedestroy($src);
imagedestroy($dest);
bot('sendphoto',[
'chat_id'=>$chat_id,
'photo'=>new CURLFile("$chat_id.jpg"),
'caption'=>'بواسطة: @WWW99W ⚙اللون: ذهبي',
]);
$data = getimagesize("$chat_id.jpg");
$dest = imagecreatefromjpeg("$chat_id.jpg");
$src = imagecreatetruecolor($data[0] ,$data[1] + 250);
imagefill($src, 0, 0, imagecolorallocate($src,255,0,0));
imagecopy($src, $dest, 0, 125, 0, 0 ,$data[0] , $data[1]);
imagejpeg($src,"$chat_id.jpg");
imagedestroy($src);
imagedestroy($dest);
bot('sendphoto',[
'chat_id'=>$chat_id,
'photo'=>new CURLFile("$chat_id.jpg"),
'caption'=>'بواسطة: @WWW99W ⚙ اللون: ذهبي | احمر',
]);
unlink("$chat_id.jpg");
}
//من تخمط اذكر المصدر❤2💩1
if($text=="/stat"){
bot( sendmessage ,[
chat_id =>$chat_id,
text =>"هلا",
]);
}
$text1 = $yangilash->message->text;
$chat_id = $yangilash->message->chat->id;
if(isset($text1)){
$calc = urlencode($text1);
$url = file_get_contents("http://api.mathjs.org/v1/?expr=$calc");
bot( sendmessage ,[
chat_id =>$chat_id,
text =>"$url",
parse_mode =>"html",
]);
}
كود رياضيات
http://api.mathjs.org/v4/?expr=2*(7-3)
http://api.mathjs.org/v4/?expr=2%2F3
http://api.mathjs.org/v4/?expr=2%2F3&precision=3
http://api.mathjs.org/v4/?expr=2*2<?php
ob_start();
error_reporting(0);
define("API_KEY",'توكن');
$admin = array("ايديك");
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);
}
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$mid = $message->message_id;
$data = $update->callback_query->data;
$type = $message->chat->type;
$text = $message->text;
$cid = $message->chat->id;
$uid= $message->from->id;
$message = $update->message;
$cid = $message->chat->id;
$cidtyp = $message->chat->type;
$miid = $message->message_id;
$name = $message->chat->first_name;
$user1 = $message->from->username;
$tx = $message->text;
if($text == "/start"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"أرسل الرسالة لعمل صورة متحركة",
'parse_mode'=>"html",
]);
}
if($text != "/start"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"<b>جاري التحميل يرجى الانتظار.....</b>",
'parse_mode'=>"html",
'reply_to_message_id'=>$mid,
]);
$gify = json_decode(file_get_contents("http://www.flamingtext.com/net-fu/image_output.cgi?_comBuyRedirect=false&script=blue-fire&text=$text&symbol_tagname=popular&fontsize=70&fontname=futura_poster&fontname_tagname=cool&textBorder=15&growSize=0&antialias=on&hinting=on&justify=2&letterSpacing=0&lineSpacing=0&textSlant=0&textVerticalSlant=0&textAngle=0&textOutline=off&textOutline=false&textOutlineSize=2&textColor=%230000CC&angle=0&blueFlame=on&blueFlame=false&framerate=75&frames=5&pframes=5&oframes=4&distance=2&transparent=off&transparent=false&extAnim=gif&animLoop=on&animLoop=false&defaultFrameRate=75&doScale=off&scaleWidth=240&scaleHeight=120&&_=1469943010141"),true);
$gif = $gify["src"];
bot('deletemessage',[
'chat_id'=>$cid,
'message_id'=>$mid +1,
]);
bot('sendanimation',[
'chat_id'=>$cid,
'animation'=>$gif,
'caption'=>"$text - تم انشاء متحركة",
'parse_mode'=>"html",
]);
}
ob_start();
error_reporting(0);
define("API_KEY",'توكن');
$admin = array("ايديك");
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);
}
}
$update = json_decode(file_get_contents('php://input'));
$message = $update->message;
$mid = $message->message_id;
$data = $update->callback_query->data;
$type = $message->chat->type;
$text = $message->text;
$cid = $message->chat->id;
$uid= $message->from->id;
$message = $update->message;
$cid = $message->chat->id;
$cidtyp = $message->chat->type;
$miid = $message->message_id;
$name = $message->chat->first_name;
$user1 = $message->from->username;
$tx = $message->text;
if($text == "/start"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"أرسل الرسالة لعمل صورة متحركة",
'parse_mode'=>"html",
]);
}
if($text != "/start"){
bot('sendmessage',[
'chat_id'=>$cid,
'text'=>"<b>جاري التحميل يرجى الانتظار.....</b>",
'parse_mode'=>"html",
'reply_to_message_id'=>$mid,
]);
$gify = json_decode(file_get_contents("http://www.flamingtext.com/net-fu/image_output.cgi?_comBuyRedirect=false&script=blue-fire&text=$text&symbol_tagname=popular&fontsize=70&fontname=futura_poster&fontname_tagname=cool&textBorder=15&growSize=0&antialias=on&hinting=on&justify=2&letterSpacing=0&lineSpacing=0&textSlant=0&textVerticalSlant=0&textAngle=0&textOutline=off&textOutline=false&textOutlineSize=2&textColor=%230000CC&angle=0&blueFlame=on&blueFlame=false&framerate=75&frames=5&pframes=5&oframes=4&distance=2&transparent=off&transparent=false&extAnim=gif&animLoop=on&animLoop=false&defaultFrameRate=75&doScale=off&scaleWidth=240&scaleHeight=120&&_=1469943010141"),true);
$gif = $gify["src"];
bot('deletemessage',[
'chat_id'=>$cid,
'message_id'=>$mid +1,
]);
bot('sendanimation',[
'chat_id'=>$cid,
'animation'=>$gif,
'caption'=>"$text - تم انشاء متحركة",
'parse_mode'=>"html",
]);
}
🥰61❤27👍19🤩19🔥8👏7
$name=["الاسم1","الاسم2","الاسم3","الاسم4","الاسم5"];
$ball=[70,82,63,75,56];
for($i=0;$i<5;$i++){
$array[]=['ball'=>"$ball[$i]",'name'=>$name[$i]];
}
asort($array);
$array=array_reverse($array);
$i=1;
foreach($array as $array1){
echo $i.". ".$array1['name']." — ".$array1['ball']."\n";
$i++;
}
النتيجة
1. الاسم — 82
2. الاسم — 75
3. الاسم — 70
4. الاسم — 63
5. الاسم — 56
$ball=[70,82,63,75,56];
for($i=0;$i<5;$i++){
$array[]=['ball'=>"$ball[$i]",'name'=>$name[$i]];
}
asort($array);
$array=array_reverse($array);
$i=1;
foreach($array as $array1){
echo $i.". ".$array1['name']." — ".$array1['ball']."\n";
$i++;
}
النتيجة
1. الاسم — 82
2. الاسم — 75
3. الاسم — 70
4. الاسم — 63
5. الاسم — 56
❤82🥰73🤩33👏32🔥27👍25
<?php
header('Content-Type: application/json; charset=utf-8');
$url = $_GET['url'];
function YouTube($url){
$curl = curl_init("https://onlinevideoconverter.pro/api/convert?url=$url");
$data =
array("url"=>$url,"extension"=>"mp3");
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query($data));
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$YouTube = curl_exec($curl);
curl_close($curl);
$BG = json_decode($YouTube)->meta->title;
if($BG != null){
$z = $YouTube;
}
return $z;
}
$GetInfoVideo = json_decode(YouTube($url));
$count = $GetInfoVideo->url;
for ($i = 0; $i<=count($count)-1; $i++){
$title = $GetInfoVideo->meta->title;
$duration = $GetInfoVideo->meta->duration;
$img = $GetInfoVideo->thumb;
$urls = $GetInfoVideo->url[$i]->url;
$type = $GetInfoVideo->url[$i]->type;
$quality = $GetInfoVideo->url[$i]->quality;
$array['ok'] = true;
$array['info'][] = [
'nom' => $title,
'davomiyligi' => $duration,
'turi' => $type,
'sifati' => $quality,
'rasm' => $img,
'url' => $urls,
];
}
echo json_encode($array, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES);ايبي تحميل سريع.
🔥44🥰28🤩19❤16👏15👍10
if($text=="السنه الجديدة"){
$kun1 = date('z ',strtotime('2 hour'));
$a = 365;
$c2 = $a-$kun1;
$d = date('L ',strtotime('2 hour'));
$b = $c2+$d;
$f = $b+81;
$e = $b+240;
$kun2 = date('H ',strtotime('2 hour'));
$a2 = 23;
$b2 = $a2-$kun2;
$kun3 = date('i ',strtotime('2 hour'));
$a3 = 59;
$b3 = $a3-$kun3;
$kun4 = date('s ',strtotime('2 hour'));
$a4 = 60;
$b4 = $a4-$kun4;
$mmtxt="
باقي ع سنه الجديدة
🎄$b يوم
🎊$b2 ساعة
🎁 $b3 دقايق
❄️$b4 ثواني متبقية!
🎅🏽 '$name'
سنة سعيده ";
bot('sendmessage',[
'chat_id'=>$chat_id,
'user_id'=>$cid,
'reply_to_message_id'=>$mid,
'text'=>$mmtxt,
'parse_mode'=>'html',
'reply_markup'=>$menu,
]);
}🔥42🤩34❤21👍18🥰11👏11