Advertisement
Guest User

Untitled

a guest
Apr 22nd, 2019
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. <?php
  2. // set_time_limit(10);
  3. if (!file_exists('madeline.php')) {
  4. copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
  5. }
  6. // system(('killall screen'));
  7. $login = 'me.madeline';
  8. include 'madeline.php';
  9. $settings['app_info']['api_id'] = 210897;
  10. if($login != 'list1.madeline'){exit();}
  11. $settings['app_info']['api_hash'] = 'c7d2d161d83ce18d56c1a8a54437f5ff';
  12. $MadelineProto = new \danog\MadelineProto\API($login, $settings);
  13. if($settings['app_info']['api_id'] != 210897 or $settings['app_info']['api_hash'] != 'c7d2d161d83ce18d56c1a8a54437f5ff'){exit();}
  14. $MadelineProto->start();
  15. print_r($MadelineProto->get_self());
  16. $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => "X", 'about' => "X", ]);
  17. $admin = "@SsUsS";
  18. $x = 0;
  19. $u = explode("<br>", file_get_contents("users.txt"));
  20. do{
  21. $i = rand(0,count($u)-1);
  22. try{
  23. $block = explode("\n",file_get_contents("block.txt"));
  24. if(!in_array($u[$i], $block)){
  25. $url = file_get_contents('http://t.me/'.$u[$i],null,null,0,1334);
  26. preg_match('/property="og:description" content="(.*)">/',$url,$match);
  27. if($match[1] == ""){
  28. $url = file_get_contents('http://telegram.dog/'.$u[$i],null,null,0,1334);
  29. preg_match('/property="og:description" content="(.*)">/',$url,$match);
  30. if($match[1] == ""){
  31. $block = explode("\n",file_get_contents("block.txt"));
  32. if(!in_array($u[$i], $block)){
  33. try{
  34. $MadelineProto->account->checkUsername(['username' => $u[$i]]);
  35. }catch(Exception $e) {
  36. file_put_contents("block.txt", $u[$i]."\n",FILE_APPEND);
  37. $MadelineProto->messages->sendMessage(['peer' => $admin, 'message' => "- The : @$u[$i] adding To ban list "]);
  38. }
  39. $block = explode("\n",file_get_contents("block.txt"));
  40. if(!in_array($u[$i], $block)){
  41. $Bool = $MadelineProto->account->checkUsername(['username' => $u[$i]]);
  42. if($Bool == true){
  43. $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $u[$i] ]);
  44. $MadelineProto->messages->sendMessage(['peer' => "$admin", 'message' => "help @$u[$i]"]);
  45. echo '@'.$u[$i]." UserName Taken... \n";
  46. exit;
  47. }
  48. }
  49. }
  50. }
  51. }
  52. }
  53. }catch(Exception $e) {
  54. echo "help ";
  55. }
  56. $x++;
  57. echo 'False - '.$u[$i].":[".$x." in:".date("s"). "]\n";
  58. usleep(140000);
  59.  
  60. }while(true);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement