Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // set_time_limit(10);
- if (!file_exists('madeline.php')) {
- copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
- }
- // system(('killall screen'));
- $login = 'me.madeline';
- include 'madeline.php';
- $settings['app_info']['api_id'] = 210897;
- if($login != 'list1.madeline'){exit();}
- $settings['app_info']['api_hash'] = 'c7d2d161d83ce18d56c1a8a54437f5ff';
- $MadelineProto = new \danog\MadelineProto\API($login, $settings);
- if($settings['app_info']['api_id'] != 210897 or $settings['app_info']['api_hash'] != 'c7d2d161d83ce18d56c1a8a54437f5ff'){exit();}
- $MadelineProto->start();
- print_r($MadelineProto->get_self());
- $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => "X", 'about' => "X", ]);
- $admin = "@SsUsS";
- $x = 0;
- $u = explode("<br>", file_get_contents("users.txt"));
- do{
- $i = rand(0,count($u)-1);
- try{
- $block = explode("\n",file_get_contents("block.txt"));
- if(!in_array($u[$i], $block)){
- $url = file_get_contents('http://t.me/'.$u[$i],null,null,0,1334);
- preg_match('/property="og:description" content="(.*)">/',$url,$match);
- if($match[1] == ""){
- $url = file_get_contents('http://telegram.dog/'.$u[$i],null,null,0,1334);
- preg_match('/property="og:description" content="(.*)">/',$url,$match);
- if($match[1] == ""){
- $block = explode("\n",file_get_contents("block.txt"));
- if(!in_array($u[$i], $block)){
- try{
- $MadelineProto->account->checkUsername(['username' => $u[$i]]);
- }catch(Exception $e) {
- file_put_contents("block.txt", $u[$i]."\n",FILE_APPEND);
- $MadelineProto->messages->sendMessage(['peer' => $admin, 'message' => "- The : @$u[$i] adding To ban list "]);
- }
- $block = explode("\n",file_get_contents("block.txt"));
- if(!in_array($u[$i], $block)){
- $Bool = $MadelineProto->account->checkUsername(['username' => $u[$i]]);
- if($Bool == true){
- $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $u[$i] ]);
- $MadelineProto->messages->sendMessage(['peer' => "$admin", 'message' => "help @$u[$i]"]);
- echo '@'.$u[$i]." UserName Taken... \n";
- exit;
- }
- }
- }
- }
- }
- }
- }catch(Exception $e) {
- echo "help ";
- }
- $x++;
- echo 'False - '.$u[$i].":[".$x." in:".date("s"). "]\n";
- usleep(140000);
- }while(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement