NBOTS Telegram 444
$upfile = $update->message->document;
$upname = $upfile->file_name; $query = $update->callback_query;
$id = $query->message->chat->id;
$data = $query->data;
if($upfile){
if (strpos($upname,"zip") !== false){
$txt = "تم اضافة الملف $upname\nهل تريد فك ضغظ الملف عنه؟!";
$kyi["inline_keyboard"][] = [['text'=>"فك ضغط المجلد ",'callback_data'=>"#$upname"]];
}elseif(strpos($upname,"zip") == false){
$kyi["inline_keyboard"][] = [['text'=>"رابط الملف",'callback_data'=>"url". $_SERVER['SERVER_NAME']."/".$upname]];
$txt = "تم رفع الملف $upname";
}
$url = "https://api.telegram.org/file/bot".API_KEY."/".bot('getfile',['file_id'=>$upfile->file_id])->result->file_path; file_put_contents($upname,file_get_contents($url));
bot('sendmessage',[
'chat_id'=>$chat_id,
'text' =>$txt,
'reply_markup' => json_encode($kyi),
]);
}
if($data){
if(preg_match('/^(#)(.*)/s', $data, $open)){
$sz = str_replace(".zip",'',$open[2]);
$zip = new ZipArchive;
if ($zip->open($open[2]) === TRUE) {
$txt = "تم فك المجلد بنجاح\n -> $open[2]\n-> $sz";
$zip->extractTo(__DIR__);
$zip->close();
}else{
$txt ="حدث خطأ";
}
}
if(preg_match('/^(url)(.*)/s', $data, $url)){
$txt ="https://".$url[2];
}
bot("sendmessage",[
'chat_id'=>$id,
'text'=>$txt,
]);
}


// @nbots

رفع ملفات و فك الملفات المضغوطه zip
والمطور المضغوط منكم يسرقه لقناته 😂



tgoop.com/NBots/444
Create:
Last Update:

$upfile = $update->message->document;
$upname = $upfile->file_name; $query = $update->callback_query;
$id = $query->message->chat->id;
$data = $query->data;
if($upfile){
if (strpos($upname,"zip") !== false){
$txt = "تم اضافة الملف $upname\nهل تريد فك ضغظ الملف عنه؟!";
$kyi["inline_keyboard"][] = [['text'=>"فك ضغط المجلد ",'callback_data'=>"#$upname"]];
}elseif(strpos($upname,"zip") == false){
$kyi["inline_keyboard"][] = [['text'=>"رابط الملف",'callback_data'=>"url". $_SERVER['SERVER_NAME']."/".$upname]];
$txt = "تم رفع الملف $upname";
}
$url = "https://api.telegram.org/file/bot".API_KEY."/".bot('getfile',['file_id'=>$upfile->file_id])->result->file_path; file_put_contents($upname,file_get_contents($url));
bot('sendmessage',[
'chat_id'=>$chat_id,
'text' =>$txt,
'reply_markup' => json_encode($kyi),
]);
}
if($data){
if(preg_match('/^(#)(.*)/s', $data, $open)){
$sz = str_replace(".zip",'',$open[2]);
$zip = new ZipArchive;
if ($zip->open($open[2]) === TRUE) {
$txt = "تم فك المجلد بنجاح\n -> $open[2]\n-> $sz";
$zip->extractTo(__DIR__);
$zip->close();
}else{
$txt ="حدث خطأ";
}
}
if(preg_match('/^(url)(.*)/s', $data, $url)){
$txt ="https://".$url[2];
}
bot("sendmessage",[
'chat_id'=>$id,
'text'=>$txt,
]);
}


// @nbots

رفع ملفات و فك الملفات المضغوطه zip
والمطور المضغوط منكم يسرقه لقناته 😂

BY أبو أسامة


Share with your friend now:
tgoop.com/NBots/444

View MORE
Open in Telegram


Telegram News

Date: |

Done! Now you’re the proud owner of a Telegram channel. The next step is to set up and customize your channel. Hashtags For crypto enthusiasts, there was the “gm” app, a self-described “meme app” which only allowed users to greet each other with “gm,” or “good morning,” a common acronym thrown around on Crypto Twitter and Discord. But the gm app was shut down back in September after a hacker reportedly gained access to user data. 4How to customize a Telegram channel? The court said the defendant had also incited people to commit public nuisance, with messages calling on them to take part in rallies and demonstrations including at Hong Kong International Airport, to block roads and to paralyse the public transportation system. Various forms of protest promoted on the messaging platform included general strikes, lunchtime protests and silent sit-ins.
from us


Telegram أبو أسامة
FROM American