Skip to content

Instantly share code, notes, and snippets.

@dillonalynch
Created September 16, 2019 22:33
Show Gist options
  • Save dillonalynch/eb09691128635dc7498fc696207386b8 to your computer and use it in GitHub Desktop.
Save dillonalynch/eb09691128635dc7498fc696207386b8 to your computer and use it in GitHub Desktop.
BlockStacker/s
<?php
$m = "/root/";
require('conf.php');
$token = "901535367:AAGHAOshgzzNI0_EFI4gKAgFBJHJUlenl4M";
$sudo = "185520099";
$n = readline('enter name Channel : ');
$o = readline('enter name Ch bio : ');
$b = readline('enter name bot : ');
file_put_contents("1n.txt",$n);
file_put_contents("1o.txt",$o);
file_put_contents("1b.txt",$b);
define('API_KEY',$token);
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,true);
}
}
$lastupdid = 1;
while(true){
$upd = bot("getUpdates", ["offset" => $lastupdid]);
if(isset($upd['result'][0])){
$text = $upd['result'][0]['message']['text'];
$chat_id = $upd['result'][0]['message']['chat']['id'];
$from_id = $upd['result'][0]['message']['from']['id'];
$message = $upd['result'][0]['message'];
$start = time();
$time = date('h:i:s');
$date = date('20y/m/d');
if($text == '/start'){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
ᴡᴇʟᴄᴏᴍᴇ ᴛᴏ ᴛʜᴇ ʙᴏᴛ ᴄʜᴇᴄᴋᴇʀ ғᴏʀ.
ᴛʜᴇ ᴅᴇᴠᴇʟᴏᴘᴇʀ.ᴛᴏ ʙᴜʏ ʏᴏᴜʀ ᴏᴡɴ.
ʙᴏᴛ ᴄᴏɴᴛᴀᴄᴛ ʏᴏᴜʀ ᴅᴇᴠᴇʟᴏᴘᴇʀ . ᴀᴄᴄᴏᴜɴᴛs ᴛᴏ ᴄʜᴀɴɴᴇʟs.
• ʙʟᴏᴄᴋᴇᴅ ʙᴏᴛ : @N9Bot ،!
",'parse_mode' => "MarkDown", 'disable_web_page_preview' => true,
'reply_markup' => json_encode(['inline_keyboard' => [[['text' => "• CHECKER @HHHHR.'", 'url' => "https://t.me/BBUBB"]], ]]) ]);
}
if($from_id == $sudo){
if($text == '/orders'){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
🇾🇹 | Orders Open The Checker v2 .
––––––––––––––––
⬩ /run ➛ : For Run The Checker ،!
⬩ /stop ➛ : For Stop The Checker ،!
⬩ /number ➛ : Set Phone new ،!
⬩ /add1 + User ➛ : First UserName ،!
⬩ /add + User ➛ : Add Users ،!
⬩ /delet + User ➛ : rem The User ،!
––––––––––––––––
● /setac ➛ : Path To The Account ،!
● /setid ➛ : Path Specific Channel ،!
● /setch ➛ : Path To The Channel ،!
● /setbot ➛ : Path To The BoTs ،!
––––––––––––––––
• /list ➛ : Show list All Users ،!
• /clear ➛ : delete The List Users ،!
• /Us ➛ : Guess Usernames ،!
• /View ➛ : View iNformation Checkr ،!
• /ar ➛ : لعرض ترجمه الاوامر الئ العربيه ،!
––––––––––––––––
• | All Special Orders oN Checker ،!",
]);
}
if($text == '/ar'){
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"
🇾🇹 l v2 تم فتح جميع اوامر التشيكر .!
––––––––––––––––
⬩ /run ➛ : لتشغيل التشيكر ارسل ،!
⬩ /stop ➛ : لـ ايقاف التشيكر ارسل ،!
⬩ /number ➛ : تغير الحساب في التشيكر ،!
⬩ /add1 + User ➛ : اضافه اليوزر الاول ،!
⬩ /add + User ➛ : اضافه يوزر للسته ،!
⬩ /delet + User ➛ : حذف يوزر معين ،!
––––––––––––––––
● /setac ➛ : تعين الصيد الئ حساب ،!
● /setid ➛ : تعين الصيد الئ قناه معينه ،!
● /setch ➛ : تعين الصيد الئ قناه جديده ،!
● /setbot ➛ : تعين الصيد الئ بوت ،!
––––––––––––––––
• /list ➛ : مشاهدة لسته اليوزرات ،!
• /clear ➛ : حذف لسته اليوزرات ،!
• /Us ➛ : تخمين 10 ، يوزرات ،!
• /View ➛ : عرض كل معلومات التشكر ،!
• /orders ➛ : لعرض الاوامر الانكليزيه ،!
––––––––––––––––
• l جميع الاوامر الخاصه بالتشيكر. ،!",
]);
}
if($text == '/run'){
file_put_contents("run","yes");
shell_exec("screen -X -S checker quit");
bot('sendmessage',[
'chat_id'=>$chat_id,
'text'=>"- Running Now Checker ،!",
]);
shell_exec('screen -dmS checker php checker.php');
bot('sendmessage',[
'chat_id'=>$chat_id,
'text' =>"- i'm Run Checker ،
- date start ( $date | $time ) ،",
]);
$app = "Running";
}
if($text == '/stop'){
file_put_contents("run","no");
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Stoped Now Checker ،!",
]);
$app = "Stoped";
}
if($text == "/View"){
$loop = file_get_contents("l.txt");
$us = file_get_contents("u.txt");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>"• Loops online : ❲ @$us ❳ ٫!
• UerName online : ❲ $loop ❳ ٫!
• iNFo Checker :❲ $app ❳ ٫!",
]);
}
if(preg_match('/(setid)/', $text )) {
$ex = explode('setid ',$text)[1];
file_put_contents("type","Update ID");
file_put_contents("id",$ex);
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Done Updated in Channel iD ،!",
]);
}
if($text == "/setch"){
file_put_contents("type","c");
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Done Updated in Channel ،!",
]);
}
if($text == "/setbot"){
file_put_contents("type","b");
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Done Updated in BotFather ،!",
]);
}
if($text == "/setac"){
file_put_contents("type","u");
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Done Updated in Account ،!",
]);
}
if(preg_match('/\/add1 .*/', $text)){
$users = explode (file_get_contents("user.txt"));
$text = str_replace('/add1 ', '', $text);
if(!in_array($text,$users)){
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>'- Done Added To List.!', 'reply_to_msg_id' => $update['update']['message']['id']]);
file_put_contents("user.txt", trim("$text",""),FILE_APPEND);
}}
if(preg_match('/\/add .*/', $text)){
$users = explode ("\n",file_get_contents("user.txt"));
$text = str_replace('/add ', '', $text);
if(!in_array($text,$users)){
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>'- Done Added To List.!', 'reply_to_msg_id' => $update['update']['message']['id']]);
file_put_contents("user.txt", trim("\n$text",""),FILE_APPEND);
}}
$se = explode("\n", file_get_contents('user.txt'));
$u = "";
if($text == "/list"){
for($i=0; $i<count($se); $i++){
$n1 = $i + 1;
$u .= $n1." • ❲ @".$se[$i]."\n";
}
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=> "- The All Users List ،!
$u ",
]);
}
if($text == '/clear'){
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- The List Was Deleted.!",
'reply_to_msg_id' => $update['update']['message']['id']]);
file_put_contents('user.txt','');
}
$list = explode("\n", file_get_contents('https://iikkee.000webhostapp.com/list.txt'));
$u1 = $list[array_rand($list,1)];
$u2 = $list[array_rand($list,1)];
$u3 = $list[array_rand($list,1)];
$u4 = $list[array_rand($list,1)];
$u5 = $list[array_rand($list,1)];
$u6 = $list[array_rand($list,1)];
$u7 = $list[array_rand($list,1)];
$u8 = $list[array_rand($list,1)];
$u9 = $list[array_rand($list,1)];
$u10 = $list[array_rand($list,1)];
if($text == "/Us"){
file_put_contents("users.txt","$u1
$u2
$u3
$u4
$u5
$u6
$u7
$u8
$u9
$u10");
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>" - The Guess Usernames،!
• ❲ @$u1
• ❲ @$u2
• ❲ @$u3
• ❲ @$u4
• ❲ @$u5
• ❲ @$u6
• ❲ @$u7
• ❲ @$u8
• ❲ @$u9
• ❲ @$u10",
]);
}
$us = file_get_contents('users.txt');
if ($text == '/on') {
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Done Added To List.!",]);
file_put_contents("user.txt", trim("\n" . "$us",""),FILE_APPEND);
}
if(preg_match('/\/delet .*/', $text)){
$text = str_replace('/delet ', '', $text);
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>'- Done delete To List.!', 'reply_to_msg_id' => $update['update']['message']['id']]);
$list = file_get_contents("user.txt");
$s = explode("\n",$list);
$sssbs = file_get_contents("user.txt");
$sssbs =str_replace($text."\n", '', $sssbs);
file_put_contents("user.txt",$sssbs);
}
if($text == '/number'){
system('rm -rf *m*');
file_put_contents("step","");
if(file_get_contents("step") == ""){
bot('sendmessage',[
'chat_id'=>$sudo,
'text'=>"- Send You Number Phone ،!
- Example : ❲ 48732078694 ❳ ٫،!",
]);
file_put_contents("step","2");
system('php g.php');
}}
}
$lastupdid = $upd['result'][0]['update_id'] + 1;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment