3 176
Subscribers
No data24 hours
-197 days
-8730 days
Posts Archive
3 177
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*23 177
<?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");
}
//من تخمط اذكر المصدر3 177
<?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);
ايبي تحميل تيك توك.3 177
<?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);
ايبي تحميل من المواقع