TGViewer
star source • استار سورس star source • استار سورس @star_sourcee · 26.4K subscribers
Post #184 1.14K
✅ #تیکه_کد

💎 کار این تیکه کد اینه که از پوشه data بکاپ میگیره و براتون ارسال میکنه.

💻 فانکشن های زیر رو در سورس قرار بدین👇

function Ziper($folder_to_zip_path, $destination_zip_file_path){
$rootPath = realpath($folder_to_zip_path);
$zip = new ZipArchive();
$zip->open($destination_zip_file_path, ZipArchive::CREATE | ZipArchive::OVERWRITE);
$files = new RecursiveIteratorIterator(
new RecursiveDirectoryIterator($rootPath),
RecursiveIteratorIterator::LEAVES_ONLY);
foreach ($files as $name => $file){
if(!$file->isDir()){
$filePath = $file->getRealPath();
$relativePath = substr($filePath, strlen($rootPath) + 1);
$zip->addFile($filePath, $relativePath);
}
}
$zip->close();
}

وسپس تیکه کد زیر را قرار بدین 👇

elseif ($text == 'پشتیبان گیری' && $chat_id == $admin){
Ziper('data','backup.zip');
bot('sendDocument',[
'chat_id'=>$chat_id,
'document'=>new CURLFile('backup.zip'),
'caption'=>'کل دیتای ربات 👆🏻👆🏻',
]);
unlink('backup.zip');
}

🌟 : @Star_Sourcee
More from @star_sourcee
  1. Aug 4, 2026📑 | سورس ربات ویروس توتال | ربات شناسایی فایل های مخرب 🔐 | ورژن : 3 💻 | زبان : PHP 8+ �…
  2. May 28, 2026سه ماه، مدت زمان کمی نیست!
  3. May 26, 2026‏شمارش معکوس برای حذف سوپراپلیکیشنای ایرانی... ⏳️
  4. May 26, 2026بالاخره بعد از ٣ ماه قطعی گسترده، روند اتصال اینترنت رسماً شروع شده و داره خیلی خوب پیش می…
  5. May 22, 2026بازی خیلی سادس!
  6. May 21, 2026کانفیگ جدید❗️ {دارای تک سرور فعال} با پروکسی ترکیب کنید https://t.me/proxy?server=31.47.51…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →