Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- ini_set('max_execution_time', 9000);
- ini_set('memory_limit','960M');
- $admin = "583881427";
- function bot($method,$datas=[]){
- $url = "https://api.telegram.org/bot889558409:AAFBvct-BGzFI7ftmZ-9JxbY7WtpZkIqUlI/".$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);
- }
- }
- if (!file_exists('madeline.php')) {
- copy('https://phar.madelineproto.xyz/madeline.php', 'madeline.php');
- }
- include 'madeline.php';
- $settings['app_info']['api_id'] = 203088;
- $settings['app_info']['api_hash'] = 'f360233d3627586775bd7298ee775bd1';
- $MadelineProto = new \danog\MadelineProto\API('lll.madeline', $settings);
- $MadelineProto->start();
- $i = 0;
- $x = 0;
- $u = explode("<br>",file_get_contents("users"));
- $b = explode("\n",file_get_contents("block"));
- while(true){
- ob_start();
- if($i > count($u)-2){
- $i = 0;
- $u = explode("<br>",file_get_contents("users"));
- $b = explode("\n",file_get_contents("block"));
- }
- if(!in_array($u[$i], $b)){
- try{
- $MadelineProto->messages->getPeerDialogs(['peers'=> [$u[$i]]]);
- echo "No:".$u[$i]." - ".$x." Bad in:".date("s")."\n";
- $x++;
- }catch(Exception $e){
- try{
- $MadelineProto->account->checkUsername(['username' => $u[$i]]);
- }catch(Exception $e) {
- file_put_contents("block", $u[$i]."\n",FILE_APPEND);
- }
- $b = explode("\n",file_get_contents("block"));
- if(!in_array($u[$i], $b)){
- $p = file_get_contents("where");
- if(!preg_match("/bot/",$u[$i])){
- if($p == "c"){
- $updates = $MadelineProto->channels->createChannel(['broadcast' => true, 'megagroup' => false, 'title' => "m", 'about' => "m", ]);
- $MadelineProto->channels->updateUsername(['channel' => $updates['updates'][1], 'username' => $u[$i]]);
- $MadelineProto->messages->sendMessage(['peer' => $updates['updates'][1], 'message' => "m"]);
- $puted = "Channel";
- }
- }else{
- $MadelineProto->messages->sendMessage(['peer' => "@botfather", 'message' => "/newbot"]);
- $MadelineProto->messages->sendMessage(['peer' => "@botfather", 'message' => "m"]);
- $MadelineProto->messages->sendMessage(['peer' => "@botfather", 'message' => $u[$i]]);
- $puted = "BotFather";
- }
- bot('sendmessage',[
- 'chat_id'=>$admin,
- 'text'=>"*New Update* ✅
- ———————
- *UserName Taken :-* [ @".$u[$i]." ]
- *Number of Clicks :-* [ $x ]
- *Was Fucked To :-* [ $puted ]
- ———————
- - @SsUsS",
- 'parse_mode'=>"MarkDown",
- ]);
- echo "- UserName Taken :- [ ".$u[$i]." ]\n";
- if($p != "c" and !preg_match("/bot/",$u[$i]));
- }
- }
- }
- $i++;
- ob_end_flush();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement